Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: tests/compiler/dart2js/memory_compiler.dart

Issue 119913002: Align source mirrors with runtime mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments + small fix. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/dartdoc/test/export_map_test.dart ('k') | tests/compiler/dart2js/mirror_system_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698