| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 CompilerOptions, | |
| 15 CompilerOutput, | 14 CompilerOutput, |
| 16 Diagnostic, | 15 Diagnostic, |
| 17 PackagesDiscoveryProvider; | 16 PackagesDiscoveryProvider; |
| 18 import 'package:compiler/src/diagnostics/messages.dart' show | 17 import 'package:compiler/src/diagnostics/messages.dart' show |
| 19 Message; | 18 Message; |
| 20 import 'package:compiler/src/mirrors/source_mirrors.dart'; | 19 import 'package:compiler/src/mirrors/source_mirrors.dart'; |
| 21 import 'package:compiler/src/mirrors/analyze.dart'; | 20 import 'package:compiler/src/mirrors/analyze.dart'; |
| 22 import 'package:compiler/src/null_compiler_output.dart' show | 21 import 'package:compiler/src/null_compiler_output.dart' show |
| 23 NullCompilerOutput; | 22 NullCompilerOutput; |
| 24 import 'package:compiler/src/library_loader.dart' show | 23 import 'package:compiler/src/library_loader.dart' show |
| 25 LoadedLibraries; | 24 LoadedLibraries; |
| 25 import 'package:compiler/src/options.dart' show |
| 26 CompilerOptions; |
| 26 | 27 |
| 27 import 'memory_source_file_helper.dart'; | 28 import 'memory_source_file_helper.dart'; |
| 28 | 29 |
| 29 export 'output_collector.dart'; | 30 export 'output_collector.dart'; |
| 30 export 'package:compiler/compiler_new.dart' show | 31 export 'package:compiler/compiler_new.dart' show |
| 31 CompilationResult; | 32 CompilationResult; |
| 32 export 'diagnostic_helper.dart'; | 33 export 'diagnostic_helper.dart'; |
| 33 | 34 |
| 34 class MultiDiagnostics implements CompilerDiagnostics { | 35 class MultiDiagnostics implements CompilerDiagnostics { |
| 35 final List<CompilerDiagnostics> diagnosticsList; | 36 final List<CompilerDiagnostics> diagnosticsList; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); | 277 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); |
| 277 | 278 |
| 278 List<Uri> libraries = <Uri>[]; | 279 List<Uri> libraries = <Uri>[]; |
| 279 memorySourceFiles.forEach((String path, _) { | 280 memorySourceFiles.forEach((String path, _) { |
| 280 libraries.add(new Uri(scheme: 'memory', path: path)); | 281 libraries.add(new Uri(scheme: 'memory', path: path)); |
| 281 }); | 282 }); |
| 282 | 283 |
| 283 return analyze(libraries, libraryRoot, packageRoot, | 284 return analyze(libraries, libraryRoot, packageRoot, |
| 284 provider, handler, options); | 285 provider, handler, options); |
| 285 } | 286 } |
| OLD | NEW |