| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 // Partial test that the closed world computed from [WorldImpact]s derived from | 5 // Partial test that the closed world computed from [WorldImpact]s derived from |
| 6 // kernel is equivalent to the original computed from resolution. | 6 // kernel is equivalent to the original computed from resolution. |
| 7 library dart2js.kernel.closed_world2_test; | 7 library dart2js.kernel.closed_world2_test; |
| 8 | 8 |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 main() { | 78 main() { |
| 79 print('Hello World'); | 79 print('Hello World'); |
| 80 ''.contains; // Trigger member closurization. | 80 ''.contains; // Trigger member closurization. |
| 81 new Element.div(); | 81 new Element.div(); |
| 82 new ClassWithSetter().setter = null; | 82 new ClassWithSetter().setter = null; |
| 83 new Class1().method1(); | 83 new Class1().method1(); |
| 84 new Class2().method2(); | 84 new Class2().method2(); |
| 85 new Class2().method3(); | 85 new Class2().method3(); |
| 86 null is List<int>; | 86 null is List<int>; |
| 87 method1(); // Both top level and instance method named 'method1' are live. | 87 method1(); // Both top level and instance method named 'method1' are live. |
| 88 #main; // Use a const symbol. |
| 88 } | 89 } |
| 89 ''' | 90 ''' |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 main(List<String> args) { | 93 main(List<String> args) { |
| 93 asyncTest(() async { | 94 asyncTest(() async { |
| 94 await mainInternal(args); | 95 await mainInternal(args); |
| 95 }); | 96 }); |
| 96 } | 97 } |
| 97 | 98 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 371 |
| 371 MemoryDillLibraryLoaderTask(KernelToElementMap elementMap, | 372 MemoryDillLibraryLoaderTask(KernelToElementMap elementMap, |
| 372 DiagnosticReporter reporter, Measurer measurer, this.program) | 373 DiagnosticReporter reporter, Measurer measurer, this.program) |
| 373 : super(elementMap, null, null, reporter, measurer); | 374 : super(elementMap, null, null, reporter, measurer); |
| 374 | 375 |
| 375 Future<LoadedLibraries> loadLibrary(Uri resolvedUri, | 376 Future<LoadedLibraries> loadLibrary(Uri resolvedUri, |
| 376 {bool skipFileWithPartOfTag: false}) async { | 377 {bool skipFileWithPartOfTag: false}) async { |
| 377 return createLoadedLibraries(program); | 378 return createLoadedLibraries(program); |
| 378 } | 379 } |
| 379 } | 380 } |
| OLD | NEW |