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

Unified Diff: runtime/vm/object.h

Issue 17904009: Hide parent function name in name of closurized function to user. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « pkg/unittest/test/pretty_print_test.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 24503)
+++ runtime/vm/object.h (working copy)
@@ -1324,6 +1324,17 @@
return BuildSignature(instantiate, kInternalName, TypeArguments::Handle());
}
+ // Build a string of the form '(T, {b: B, c: C}) => R' representing the
+ // user visible signature of the given function. In this example, T and R are
+ // type parameters of class C, the owner of the function.
+ // Implicit parameters are hidden, as well as the prefix denoting the
+ // signature class and its type parameters.
+ RawString* UserVisibleSignature() const {
+ const bool instantiate = false;
+ return BuildSignature(
+ instantiate, kUserVisibleName, TypeArguments::Handle());
+ }
+
// Build a string of the form '(A, {b: B, c: C}) => D' representing the
// signature of the given function, where all generic types (e.g. '<T, R>' in
// 'C<T, R>(T, {b: B, c: C}) => R') are instantiated using the given
« no previous file with comments | « pkg/unittest/test/pretty_print_test.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698