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 dart2js.test.memory_compiler; | 5 library dart2js.test.memory_compiler; |
6 | 6 |
7 import 'memory_source_file_helper.dart'; | 7 import 'dart:async'; |
8 | |
9 | |
10 import 'package:compiler/src/null_compiler_output.dart' show | |
11 NullCompilerOutput; | |
12 | |
13 import 'package:compiler/src/dart2jslib.dart' show | |
14 Message; | |
15 | 8 |
16 import 'package:compiler/compiler.dart' show | 9 import 'package:compiler/compiler.dart' show |
17 DiagnosticHandler; | 10 DiagnosticHandler; |
18 | |
19 import 'package:compiler/compiler_new.dart' show | 11 import 'package:compiler/compiler_new.dart' show |
20 CompilationResult, | 12 CompilationResult, |
21 CompilerDiagnostics, | 13 CompilerDiagnostics, |
22 CompilerOutput, | 14 CompilerOutput, |
23 Diagnostic, | 15 Diagnostic, |
24 PackagesDiscoveryProvider; | 16 PackagesDiscoveryProvider; |
25 | 17 import 'package:compiler/src/messages.dart' show |
26 import 'dart:async'; | 18 Message; |
27 | |
28 import 'package:compiler/src/mirrors/source_mirrors.dart'; | 19 import 'package:compiler/src/mirrors/source_mirrors.dart'; |
29 import 'package:compiler/src/mirrors/analyze.dart'; | 20 import 'package:compiler/src/mirrors/analyze.dart'; |
| 21 import 'package:compiler/src/null_compiler_output.dart' show |
| 22 NullCompilerOutput; |
| 23 import 'package:compiler/src/library_loader.dart' show |
| 24 LoadedLibraries; |
30 | 25 |
31 import 'package:compiler/src/library_loader.dart' | 26 import 'memory_source_file_helper.dart'; |
32 show LoadedLibraries; | |
33 | 27 |
34 export 'output_collector.dart'; | 28 export 'output_collector.dart'; |
35 export 'package:compiler/compiler_new.dart' show | 29 export 'package:compiler/compiler_new.dart' show |
36 CompilationResult; | 30 CompilationResult; |
37 | 31 |
38 class DiagnosticMessage { | 32 class DiagnosticMessage { |
39 final Message message; | 33 final Message message; |
40 final Uri uri; | 34 final Uri uri; |
41 final int begin; | 35 final int begin; |
42 final int end; | 36 final int end; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); | 323 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); |
330 | 324 |
331 List<Uri> libraries = <Uri>[]; | 325 List<Uri> libraries = <Uri>[]; |
332 memorySourceFiles.forEach((String path, _) { | 326 memorySourceFiles.forEach((String path, _) { |
333 libraries.add(new Uri(scheme: 'memory', path: path)); | 327 libraries.add(new Uri(scheme: 'memory', path: path)); |
334 }); | 328 }); |
335 | 329 |
336 return analyze(libraries, libraryRoot, packageRoot, | 330 return analyze(libraries, libraryRoot, packageRoot, |
337 provider, handler, options); | 331 provider, handler, options); |
338 } | 332 } |
OLD | NEW |