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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart

Issue 2995023002: Add debug names to scopes. (Closed)
Patch Set: Created 3 years, 4 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/kernel/kernel_enum_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
index 5991fd0fe04077141ef3bd9c46cbdf998562bbbf..27e9c9ee448542ece70e6994c69709813a9f4fe1 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
@@ -210,8 +210,10 @@ class KernelEnumBuilder extends SourceClassBuilder
documentationComment,
metadata,
name,
- new Scope(members, null, parent.scope, isModifiable: false),
- new Scope(constructors, null, null, isModifiable: false),
+ new Scope(members, null, parent.scope, "enum $name",
+ isModifiable: false),
+ new Scope(constructors, null, null, "constructors",
+ isModifiable: false),
cls,
constantNamesAndOffsetsAndDocs,
toStringMap,
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698