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