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

Unified Diff: pkg/front_end/lib/src/fasta/source/scope_listener.dart

Issue 2785883005: Make top-level scope implicit. (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | pkg/front_end/tool/fasta_perf.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/source/scope_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/scope_listener.dart b/pkg/front_end/lib/src/fasta/source/scope_listener.dart
index 7f2e3ebd83adf45257cff4b48b0556ecaf5e7c46..df763f7552734de34cd0dd14f6bc5d3778c72691 100644
--- a/pkg/front_end/lib/src/fasta/source/scope_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/scope_listener.dart
@@ -25,7 +25,8 @@ abstract class ScopeListener<J> extends UnhandledListener {
J continueTarget;
- ScopeListener(this.scope);
+ ScopeListener(Scope scope)
+ : scope = scope ?? new Scope(const {}, null, isModifiable: false);
J createJumpTarget(JumpTargetKind kind, int charOffset);
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | pkg/front_end/tool/fasta_perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698