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 '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' | 9 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' |
10 show NullSink; | 10 show NullSink; |
11 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'; | 11 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'; |
12 | 12 |
13 import '../../../sdk/lib/_internal/compiler/compiler.dart' | 13 import '../../../sdk/lib/_internal/compiler/compiler.dart' |
14 show Diagnostic, DiagnosticHandler; | 14 show Diagnostic, DiagnosticHandler; |
15 | 15 |
16 import 'dart:async'; | 16 import 'dart:async'; |
17 | 17 |
18 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'
; | 18 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/source_mirror
s.dart'; |
19 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro
r.dart'; | 19 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/analyze.dart'
; |
20 | 20 |
21 class DiagnosticMessage { | 21 class DiagnosticMessage { |
22 final Uri uri; | 22 final Uri uri; |
23 final int begin; | 23 final int begin; |
24 final int end; | 24 final int end; |
25 final String message; | 25 final String message; |
26 final Diagnostic kind; | 26 final Diagnostic kind; |
27 | 27 |
28 DiagnosticMessage(this.uri, this.begin, this.end, this.message, this.kind); | 28 DiagnosticMessage(this.uri, this.begin, this.end, this.message, this.kind); |
29 } | 29 } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); | 170 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); |
171 | 171 |
172 List<Uri> libraries = <Uri>[]; | 172 List<Uri> libraries = <Uri>[]; |
173 memorySourceFiles.forEach((String path, _) { | 173 memorySourceFiles.forEach((String path, _) { |
174 libraries.add(new Uri(scheme: 'memory', path: path)); | 174 libraries.add(new Uri(scheme: 'memory', path: path)); |
175 }); | 175 }); |
176 | 176 |
177 return analyze(libraries, libraryRoot, packageRoot, | 177 return analyze(libraries, libraryRoot, packageRoot, |
178 provider, handler, options); | 178 provider, handler, options); |
179 } | 179 } |
OLD | NEW |