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

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

Issue 10960033: A library element should know its compilation units. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | « dart/lib/compiler/implementation/elements/elements.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/patch_parser.dart
diff --git a/dart/lib/compiler/implementation/patch_parser.dart b/dart/lib/compiler/implementation/patch_parser.dart
index 51eaefb8b833f8d23aaf9dca8e4f53eb51851c20..13725dbc5dc24bf3f0002a4952094c724346a33d 100644
--- a/dart/lib/compiler/implementation/patch_parser.dart
+++ b/dart/lib/compiler/implementation/patch_parser.dart
@@ -135,7 +135,6 @@ class PatchParserTask extends leg.CompilerTask {
leg.Script script = compiler.readScript(patchUri, null);
CompilationUnitElement compilationUnit =
new CompilationUnitElement(script, library);
- library.addCompilationUnit(compilationUnit);
LinkBuilder<tree.LibraryTag> imports = new LinkBuilder<tree.LibraryTag>();
compiler.withCurrentElement(compilationUnit, () {
// This patches the elements of the patch library into [library].
« no previous file with comments | « dart/lib/compiler/implementation/elements/elements.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698