Index: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart |
index 1f9ca9de5881d0ae533a1df161302bb7472159fa..f546cf124e870f022945d7f7c973da2cea9ae9e5 100644 |
--- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart |
@@ -53,10 +53,12 @@ class AstBuilder extends ScopeListener { |
bool isFirstIdentifier = false; |
- AstBuilder(this.library, this.member, this.elementStore, Scope scope) |
- : super(scope); |
+ @override |
+ final Uri uri; |
- Uri get uri => library.fileUri ?? library.uri; |
+ AstBuilder(this.library, this.member, this.elementStore, Scope scope, |
+ [Uri uri]) |
+ : uri = uri ?? library.fileUri, super(scope); |
createJumpTarget(JumpTargetKind kind, int charOffset) { |
// TODO(ahe): Implement jump targets. |