| 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 'dart:async'; |
| 8 | 8 |
| 9 import 'package:compiler/compiler.dart' show | 9 import 'package:compiler/compiler.dart' show |
| 10 DiagnosticHandler; | 10 DiagnosticHandler; |
| 11 import 'package:compiler/compiler_new.dart' show | 11 import 'package:compiler/compiler_new.dart' show |
| 12 CompilationResult, | 12 CompilationResult, |
| 13 CompilerDiagnostics, | 13 CompilerDiagnostics, |
| 14 CompilerOutput, | 14 CompilerOutput, |
| 15 Diagnostic, | 15 Diagnostic, |
| 16 PackagesDiscoveryProvider; | 16 PackagesDiscoveryProvider; |
| 17 import 'package:compiler/src/messages.dart' show | 17 import 'package:compiler/src/diagnostics/messages.dart' show |
| 18 Message; | 18 Message; |
| 19 import 'package:compiler/src/mirrors/source_mirrors.dart'; | 19 import 'package:compiler/src/mirrors/source_mirrors.dart'; |
| 20 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 | 21 import 'package:compiler/src/null_compiler_output.dart' show |
| 22 NullCompilerOutput; | 22 NullCompilerOutput; |
| 23 import 'package:compiler/src/library_loader.dart' show | 23 import 'package:compiler/src/library_loader.dart' show |
| 24 LoadedLibraries; | 24 LoadedLibraries; |
| 25 | 25 |
| 26 import 'memory_source_file_helper.dart'; | 26 import 'memory_source_file_helper.dart'; |
| 27 | 27 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); | 323 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); |
| 324 | 324 |
| 325 List<Uri> libraries = <Uri>[]; | 325 List<Uri> libraries = <Uri>[]; |
| 326 memorySourceFiles.forEach((String path, _) { | 326 memorySourceFiles.forEach((String path, _) { |
| 327 libraries.add(new Uri(scheme: 'memory', path: path)); | 327 libraries.add(new Uri(scheme: 'memory', path: path)); |
| 328 }); | 328 }); |
| 329 | 329 |
| 330 return analyze(libraries, libraryRoot, packageRoot, | 330 return analyze(libraries, libraryRoot, packageRoot, |
| 331 provider, handler, options); | 331 provider, handler, options); |
| 332 } | 332 } |
| OLD | NEW |