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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:front_end/compiler_options.dart'; | 7 import 'package:front_end/compiler_options.dart'; |
8 import 'package:front_end/incremental_kernel_generator.dart'; | 8 import 'package:front_end/incremental_kernel_generator.dart'; |
9 import 'package:front_end/memory_file_system.dart'; | 9 import 'package:front_end/memory_file_system.dart'; |
10 import 'package:front_end/src/incremental/byte_store.dart'; | 10 import 'package:front_end/src/byte_store/byte_store.dart'; |
11 import 'package:front_end/src/incremental_kernel_generator_impl.dart'; | 11 import 'package:front_end/src/incremental_kernel_generator_impl.dart'; |
12 import 'package:kernel/ast.dart'; | 12 import 'package:kernel/ast.dart'; |
13 import 'package:kernel/text/ast_to_text.dart'; | 13 import 'package:kernel/text/ast_to_text.dart'; |
14 import 'package:test/test.dart'; | 14 import 'package:test/test.dart'; |
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 15 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
16 | 16 |
17 import 'src/incremental/mock_sdk.dart'; | 17 import 'src/incremental/mock_sdk.dart'; |
18 | 18 |
19 main() { | 19 main() { |
20 defineReflectiveSuite(() { | 20 defineReflectiveSuite(() { |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 throw fail('No library found with URI "$uri"'); | 378 throw fail('No library found with URI "$uri"'); |
379 } | 379 } |
380 | 380 |
381 String _getLibraryText(Library library) { | 381 String _getLibraryText(Library library) { |
382 StringBuffer buffer = new StringBuffer(); | 382 StringBuffer buffer = new StringBuffer(); |
383 new Printer(buffer, syntheticNames: new NameSystem()) | 383 new Printer(buffer, syntheticNames: new NameSystem()) |
384 .writeLibraryFile(library); | 384 .writeLibraryFile(library); |
385 return buffer.toString(); | 385 return buffer.toString(); |
386 } | 386 } |
387 } | 387 } |
OLD | NEW |