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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 2150533002: Serialize data for LibraryElement.getImportsFor (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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: pkg/compiler/lib/src/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index 64180300abff9c2149155de257d528af86254a25..e8cdfc5537f40baea8172d89b86395bc42a3711e 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -945,8 +945,11 @@ class ImportElementX extends LibraryDependencyElementX
}
class SyntheticImportElement extends ImportElementX {
- SyntheticImportElement(CompilationUnitElement enclosingElement, Uri uri)
- : super(enclosingElement, null, uri);
+ SyntheticImportElement(CompilationUnitElement enclosingElement, Uri uri,
+ LibraryElement libraryDependency)
+ : super(enclosingElement, null, uri) {
+ this.libraryDependency = libraryDependency;
+ }
@override
Token get position => library.position;

Powered by Google App Engine
This is Rietveld 408576698