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

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

Issue 10830303: Refactor Library/CompilationUnit and how we define local Scope. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix reference in dart2js_mirror.dart 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 259d28cb60089429b2f15e3e305ecfa0529f976d..3d25e2e191b3ae0f8df6a9911a18d43da522478c 100644
--- a/lib/compiler/implementation/patch_parser.dart
+++ b/lib/compiler/implementation/patch_parser.dart
@@ -39,11 +39,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