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); |