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

Unified Diff: runtime/vm/parser.cc

Issue 23960003: Disentangle AstNode::Name and AstNode::ShortName. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | 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 5a6219a3a0ec88fb529c14d0b15bcce234c292c6..5530102aa4f642f884bca8fc9747f0c2c344b2ed 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -7552,7 +7552,7 @@ AstNode* Parser::CreateAssignmentNode(AstNode* original,
if (result == NULL) {
String& name = String::ZoneHandle();
if (original->IsTypeNode()) {
- name = Symbols::New(original->Name());
+ name = Symbols::New(original->AsTypeNode()->TypeName());
} else if ((left_ident != NULL) &&
(original->IsLiteralNode() ||
original->IsLoadLocalNode() ||
@@ -8226,8 +8226,7 @@ AstNode* Parser::ParseSelectors(AstNode* primary, bool is_cascade) {
selector = ParseInstanceCall(receiver, name);
}
} else if (primary->primary().IsTypeParameter()) {
- const String& name = String::ZoneHandle(
- Symbols::New(primary->Name()));
+ const String& name = String::ZoneHandle(Symbols::New("primary"));
Kevin Millikin (Google) 2013/09/05 13:53:46 I know this seems wrong (and not useful), but it m
regis 2013/09/05 19:42:12 This is not dead code. You can trigger this code w
Kevin Millikin (Google) 2013/09/06 12:18:46 Thanks for the clarification. I filed issue 13134
selector = ThrowNoSuchMethodError(primary->token_pos(),
current_class(),
name,
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698