OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Test of FunctionUpdate by pretty printing the updated element before and | 5 // Test of FunctionUpdate by pretty printing the updated element before and |
6 // after. | 6 // after. |
7 library trydart.library_updater_test; | 7 library trydart.library_updater_test; |
8 | 8 |
9 import 'package:dart2js_incremental/library_updater.dart' show | 9 import 'package:dart2js_incremental/library_updater.dart' show |
10 IncrementalCompilerContext, | 10 IncrementalCompilerContext, |
11 LibraryUpdater, | 11 LibraryUpdater, |
12 Update; | 12 Update; |
13 | 13 |
14 import 'package:compiler/src/parser/listener.dart' show | 14 import 'package:compiler/src/parser/partial_elements.dart' show |
15 PartialFunctionElement; | 15 PartialFunctionElement; |
16 | 16 |
17 import 'package:compiler/src/script.dart' show | 17 import 'package:compiler/src/script.dart' show |
18 Script; | 18 Script; |
19 | 19 |
20 import 'package:compiler/src/io/source_file.dart' show | 20 import 'package:compiler/src/io/source_file.dart' show |
21 StringSourceFile; | 21 StringSourceFile; |
22 | 22 |
23 import 'compiler_test_case.dart'; | 23 import 'compiler_test_case.dart'; |
24 | 24 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 new ApplyUpdateTestCase( | 99 new ApplyUpdateTestCase( |
100 before: 'main(){}', | 100 before: 'main(){}', |
101 after: 'main()=>null;', | 101 after: 'main()=>null;', |
102 update: 'main'), | 102 update: 'main'), |
103 | 103 |
104 // TODO(ahe): When supporting class members, test abstract methods. | 104 // TODO(ahe): When supporting class members, test abstract methods. |
105 ] | 105 ] |
106 ); | 106 ); |
107 } | 107 } |
OLD | NEW |