| 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);
|
| });
|
| }
|
|
|