| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library _js_helper; | 5 library _js_helper; |
| 6 | 6 |
| 7 import 'dart:_js_embedded_names' show | 7 import 'dart:_js_embedded_names' show |
| 8 GET_TYPE_FROM_NAME, | 8 GET_TYPE_FROM_NAME, |
| 9 GET_ISOLATE_TAG, | 9 GET_ISOLATE_TAG, |
| 10 INTERCEPTED_NAMES, | 10 INTERCEPTED_NAMES, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 unmangleGlobalNameIfPreservedAnyways, | 68 unmangleGlobalNameIfPreservedAnyways, |
| 69 unmangleAllIdentifiersIfPreservedAnyways; | 69 unmangleAllIdentifiersIfPreservedAnyways; |
| 70 | 70 |
| 71 part 'annotations.dart'; | 71 part 'annotations.dart'; |
| 72 part 'constant_map.dart'; | 72 part 'constant_map.dart'; |
| 73 part 'native_helper.dart'; | 73 part 'native_helper.dart'; |
| 74 part 'regexp_helper.dart'; | 74 part 'regexp_helper.dart'; |
| 75 part 'string_helper.dart'; | 75 part 'string_helper.dart'; |
| 76 part 'js_rti.dart'; | 76 part 'js_rti.dart'; |
| 77 | 77 |
| 78 class _Patch { | |
| 79 const _Patch(); | |
| 80 } | |
| 81 | |
| 82 const _Patch patch = const _Patch(); | |
| 83 | |
| 84 | 78 |
| 85 /// Marks the internal map in dart2js, so that internal libraries can is-check | 79 /// Marks the internal map in dart2js, so that internal libraries can is-check |
| 86 // them. | 80 // them. |
| 87 abstract class InternalMap { | 81 abstract class InternalMap { |
| 88 } | 82 } |
| 89 | 83 |
| 90 /// No-op method that is called to inform the compiler that preambles might | 84 /// No-op method that is called to inform the compiler that preambles might |
| 91 /// be needed when executing the resulting JS file in a command-line | 85 /// be needed when executing the resulting JS file in a command-line |
| 92 /// JS engine. | 86 /// JS engine. |
| 93 requiresPreamble() {} | 87 requiresPreamble() {} |
| (...skipping 3361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3455 throw new MainError("No top-level function named 'main'."); | 3449 throw new MainError("No top-level function named 'main'."); |
| 3456 } | 3450 } |
| 3457 | 3451 |
| 3458 void badMain() { | 3452 void badMain() { |
| 3459 throw new MainError("'main' is not a function."); | 3453 throw new MainError("'main' is not a function."); |
| 3460 } | 3454 } |
| 3461 | 3455 |
| 3462 void mainHasTooManyParameters() { | 3456 void mainHasTooManyParameters() { |
| 3463 throw new MainError("'main' expects too many parameters."); | 3457 throw new MainError("'main' expects too many parameters."); |
| 3464 } | 3458 } |
| OLD | NEW |