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

Unified Diff: dart/frog/leg/frog_leg.dart

Issue 9834012: Use SourceFile from utils/compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/utils/compiler/source_file.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/frog_leg.dart
diff --git a/dart/frog/leg/frog_leg.dart b/dart/frog/leg/frog_leg.dart
index 6824041a59daa57867b1775ae95243d95e18a1ee..bbbdf8901deb3b886c6b952c4ab35c0e527c7483 100644
--- a/dart/frog/leg/frog_leg.dart
+++ b/dart/frog/leg/frog_leg.dart
@@ -5,6 +5,7 @@
#library('frog_leg');
#import('../../lib/uri/uri.dart');
+#import('../../utils/compiler/source_file.dart');
#import('../lang.dart', prefix: 'frog');
#import('api.dart', prefix: 'api');
#import('io/io.dart', prefix: 'io');
@@ -50,7 +51,7 @@ bool compile(frog.World world) {
if (!frogLibDir.endsWith("/")) frogLibDir = "$frogLibDir/";
Uri frogLib = new Uri(scheme: 'file', path: frogLibDir);
Uri libraryRoot = frogLib.resolve('../leg/lib/');
- Map<String, frog.SourceFile> sourceFiles = <frog.SourceFile>{};
+ Map<String, SourceFile> sourceFiles = <SourceFile>{};
Future<String> provider(Uri uri) {
if (uri.scheme != 'file') {
@@ -59,7 +60,7 @@ bool compile(frog.World world) {
String source = world.files.readAll(uri.path);
world.dartBytesRead += source.length;
sourceFiles[uri.toString()] =
- new frog.SourceFile(relativize(cwd, uri), source);
+ new SourceFile(relativize(cwd, uri), source);
Completer<String> completer = new Completer<String>();
completer.complete(source);
return completer.future;
@@ -74,7 +75,7 @@ bool compile(frog.World world) {
assert(fatal);
print(message);
} else if (fatal || showWarnings) {
- frog.SourceFile file = sourceFiles[uri.toString()];
+ SourceFile file = sourceFiles[uri.toString()];
print(file.getLocationMessage(message, begin, end, true));
}
if (fatal && throwOnError) throw new AbortLeg(message);
« no previous file with comments | « no previous file | dart/utils/compiler/source_file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698