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

Unified Diff: lib/compiler/implementation/patch_parser.dart

Issue 10832203: Refactor Library/CompilationUnit and how we define local Scope. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
Index: lib/compiler/implementation/patch_parser.dart
diff --git a/lib/compiler/implementation/patch_parser.dart b/lib/compiler/implementation/patch_parser.dart
index d336a9eec02f7eb0a8f6f191c6570459f7aa47b2..3763ca98c44b5f9de873d66374ceae71b20fdf9a 100644
--- a/lib/compiler/implementation/patch_parser.dart
+++ b/lib/compiler/implementation/patch_parser.dart
@@ -40,11 +40,13 @@ class PatchParserTask extends leg.CompilerTask {
void scanLibraryElements(LibraryElement library) {
measure(() {
// TODO(lrn): Possibly recursively handle #source directives in patch.
- leg.Script script = library.script;
+ leg.Script script = library.entryCompilationUnit.script;
Token tokens = new StringScanner(script.text).tokenize();
Function idGenerator = compiler.getNextFreeClassId;
PatchListener patchListener =
- new PatchElementListener(compiler, library, idGenerator);
+ new PatchElementListener(compiler,
+ library.entryCompilationUnit,
+ idGenerator);
new PatchParser(patchListener).parseUnit(tokens);
});
}

Powered by Google App Engine
This is Rietveld 408576698