OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library static_function_testlib; | |
Ivan Posva
2013/11/12 07:19:49
We usually name these just static_function_lib in
Lasse Reichstein Nielsen
2013/11/12 07:28:51
Done.
| |
6 | |
7 // Used by static_function_test.dart. | |
8 | |
9 void function(port) { port.send("LIBTOP"); } | |
10 void _function(port) { port.send("_LIBTOP"); } | |
11 | |
12 Function get privateFunction => _function; | |
13 | |
14 class C { | |
15 static void function(SendPort port) { port.send("LIB"); } | |
16 static void _function(SendPort port) { port.send("LIBPRIVATE"); } | |
17 static Function get privateFunction => _function; | |
18 } | |
19 | |
20 Function get privateClassFunction => _C.function; | |
21 Function get privateClassAndFunction => _C._function; | |
22 | |
23 class _C { | |
24 static void function(SendPort port) { port.send("_LIB"); } | |
25 static void _function(SendPort port) { port.send("_LIBPRIVATE"); } | |
26 } | |
OLD | NEW |