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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10800002: Hide names of internal classes from the user by mapping them to the documented (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/code_generator.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 9747)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -446,7 +446,7 @@
const char* static_type_name = "unknown";
if (value != NULL) {
const AbstractType& type = AbstractType::Handle(value->StaticType());
- static_type_name = String::Handle(type.Name()).ToCString();
+ static_type_name = String::Handle(type.UserVisibleName()).ToCString();
}
Parser::PrintMessage(script, token_pos, "",
"%s type check: static type '%s' is %s specific than "
@@ -454,7 +454,7 @@
eliminated ? "Eliminated" : "Generated",
static_type_name,
eliminated ? "more" : "not more",
- String::Handle(dst_type.Name()).ToCString(),
+ String::Handle(dst_type.UserVisibleName()).ToCString(),
dst_name.ToCString());
}
return eliminated;
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698