Chromium Code Reviews| Index: tests/isolate/static_function_testlib.dart |
| diff --git a/tests/isolate/static_function_testlib.dart b/tests/isolate/static_function_testlib.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..758c266adf09e2410fd651125aba38d0197215c3 |
| --- /dev/null |
| +++ b/tests/isolate/static_function_testlib.dart |
| @@ -0,0 +1,26 @@ |
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +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.
|
| + |
| +// Used by static_function_test.dart. |
| + |
| +void function(port) { port.send("LIBTOP"); } |
| +void _function(port) { port.send("_LIBTOP"); } |
| + |
| +Function get privateFunction => _function; |
| + |
| +class C { |
| + static void function(SendPort port) { port.send("LIB"); } |
| + static void _function(SendPort port) { port.send("LIBPRIVATE"); } |
| + static Function get privateFunction => _function; |
| +} |
| + |
| +Function get privateClassFunction => _C.function; |
| +Function get privateClassAndFunction => _C._function; |
| + |
| +class _C { |
| + static void function(SendPort port) { port.send("_LIB"); } |
| + static void _function(SendPort port) { port.send("_LIBPRIVATE"); } |
| +} |