| 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 'memory_source_file_helper.dart'; |
| 8 | 8 |
| 9 import 'package:compiler/src/dart2jslib.dart' | 9 import 'package:compiler/implementation/dart2jslib.dart' |
| 10 show NullSink; | 10 show NullSink; |
| 11 | 11 |
| 12 import 'package:compiler/compiler.dart' | 12 import 'package:compiler/compiler.dart' |
| 13 show Diagnostic, DiagnosticHandler, CompilerOutputProvider; | 13 show Diagnostic, DiagnosticHandler, CompilerOutputProvider; |
| 14 | 14 |
| 15 import 'dart:async'; | 15 import 'dart:async'; |
| 16 | 16 |
| 17 import 'package:compiler/src/mirrors/source_mirrors.dart'; | 17 import 'package:compiler/implementation/mirrors/source_mirrors.dart'; |
| 18 import 'package:compiler/src/mirrors/analyze.dart'; | 18 import 'package:compiler/implementation/mirrors/analyze.dart'; |
| 19 | 19 |
| 20 class DiagnosticMessage { | 20 class DiagnosticMessage { |
| 21 final Uri uri; | 21 final Uri uri; |
| 22 final int begin; | 22 final int begin; |
| 23 final int end; | 23 final int end; |
| 24 final String message; | 24 final String message; |
| 25 final Diagnostic kind; | 25 final Diagnostic kind; |
| 26 | 26 |
| 27 DiagnosticMessage(this.uri, this.begin, this.end, this.message, this.kind); | 27 DiagnosticMessage(this.uri, this.begin, this.end, this.message, this.kind); |
| 28 | 28 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); | 242 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); |
| 243 | 243 |
| 244 List<Uri> libraries = <Uri>[]; | 244 List<Uri> libraries = <Uri>[]; |
| 245 memorySourceFiles.forEach((String path, _) { | 245 memorySourceFiles.forEach((String path, _) { |
| 246 libraries.add(new Uri(scheme: 'memory', path: path)); | 246 libraries.add(new Uri(scheme: 'memory', path: path)); |
| 247 }); | 247 }); |
| 248 | 248 |
| 249 return analyze(libraries, libraryRoot, packageRoot, | 249 return analyze(libraries, libraryRoot, packageRoot, |
| 250 provider, handler, options); | 250 provider, handler, options); |
| 251 } | 251 } |
| OLD | NEW |