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

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: Created 7 years 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 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'memory_source_file_helper.dart'; 8 import 'memory_source_file_helper.dart';
9 9
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
11 show NullSink; 11 show NullSink;
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); 146 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics);
147 147
148 List<Uri> libraries = <Uri>[]; 148 List<Uri> libraries = <Uri>[];
149 memorySourceFiles.forEach((String path, _) { 149 memorySourceFiles.forEach((String path, _) {
150 libraries.add(new Uri(scheme: 'memory', path: path)); 150 libraries.add(new Uri(scheme: 'memory', path: path));
151 }); 151 });
152 152
153 return analyze(libraries, libraryRoot, packageRoot, 153 return analyze(libraries, libraryRoot, packageRoot,
154 provider, handler, options); 154 provider, handler, options);
155 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698