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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart

Issue 2704753002: Implement line and column numbers. (Closed)
Patch Set: Change message. Created 3 years, 10 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 | « no previous file | pkg/front_end/lib/src/fasta/bin/run.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/bin/run.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698