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

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

Issue 2788913002: Prepare for separate setter scope. (Closed)
Patch Set: Address comments. Created 3 years, 8 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/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 df763f7552734de34cd0dd14f6bc5d3778c72691..91997de197a0b09afd95804e4ee159185429a051 100644
--- a/pkg/front_end/lib/src/fasta/source/scope_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/scope_listener.dart
@@ -25,8 +25,7 @@ abstract class ScopeListener<J> extends UnhandledListener {
J continueTarget;
- ScopeListener(Scope scope)
- : scope = scope ?? new Scope(const {}, null, isModifiable: false);
+ ScopeListener(Scope scope) : scope = scope ?? new Scope.immutable();
J createJumpTarget(JumpTargetKind kind, int charOffset);
« no previous file with comments | « pkg/front_end/lib/src/fasta/scope.dart ('k') | pkg/front_end/lib/src/fasta/source/source_class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698