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

Unified Diff: runtime/vm/object.cc

Issue 1063763003: Go back to old naming for implicit functions to fix the build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 0ed2dfd86b7f8da7a294d5e8f786390e7d34dd72..df267db8e78a82d59f3337a0cde74a91f5778972 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -6245,7 +6245,7 @@ RawFunction* Function::ImplicitClosureFunction() const {
}
ASSERT(!IsSignatureFunction() && !IsClosureFunction());
// Create closure function.
- const String& closure_name = Symbols::ImplicitClosure();
+ const String& closure_name = String::Handle(name());
const Function& closure_function = Function::Handle(
NewClosureFunction(closure_name, *this, token_pos()));
@@ -6579,7 +6579,7 @@ RawString* Function::QualifiedUserVisibleName() const {
const Class& cls = Class::Handle(Owner());
if (IsClosureFunction()) {
- if (IsLocalFunction()) {
+ if (IsLocalFunction() && !IsImplicitClosureFunction()) {
const Function& parent = Function::Handle(parent_function());
tmp = parent.QualifiedUserVisibleName();
} else {
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698