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

Unified Diff: runtime/vm/parser.cc

Issue 1398843008: Fix Enum.toString when enum type is private. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | tests/language/enum_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index b2a85d24198f008f5b3fd154a6d094855c1d3614..94875a6b396097937e68d5d385f4aa508c38e3f5 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -4716,7 +4716,7 @@ void Parser::ParseEnumDefinition(const Class& cls) {
SkipMetadata();
ExpectToken(Token::kENUM);
- const String& enum_name = String::Handle(Z, cls.Name());
+ const String& enum_name = String::Handle(Z, cls.PrettyName());
ClassDesc enum_members(Z, cls, enum_name, false, cls.token_pos());
// Add instance field 'final int index'.
« no previous file with comments | « no previous file | tests/language/enum_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698