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

Unified Diff: sdk/lib/mirrors/mirrors.dart

Issue 24631003: Add proper API for creating private symbols wrt a library. (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 | « sdk/lib/_internal/lib/mirrors_patch.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/mirrors/mirrors.dart
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart
index 3737d4a2b3ca345506bd96891cd50944059eb3c1..596ebbd8782aad2f775d00d50b77d2ea524bcdb7 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -104,6 +104,17 @@ abstract class MirrorSystem {
* [MirrorsUsed] to specify which symbols must be retained in clear text.
*/
external static String getName(Symbol symbol);
+
+ /**
+ * Returns a symbol for [name]. If [name] is a private identifier, the symbol
+ * returned is with respect to [lib].
+ *
+ * The following text is non-normative:
+ *
+ * Using this method may result in larger output. If possible, use
+ * the const constructor of Symbol or symbol literals.
+ */
+ external static Symbol getSymbol(String name, [LibraryMirror lib]);
rmacnak 2013/09/26 00:02:55 createSymbol? newSymbol?
}
/**
« no previous file with comments | « sdk/lib/_internal/lib/mirrors_patch.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698