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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart

Issue 23045004: Throw when reflecting on elements not covered by a `MirrorsUsed` annotation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Nicolas' comments. Created 7 years, 4 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
Index: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index e1246bf341ad488b8eca9f14fb80903ee1d0ace9..cfb179c210fe11e521f68c04a04e529586212e61 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -182,6 +182,7 @@ class Namer implements ClosureNamer {
final String setterPrefix = r'set$';
final String metadataField = '@';
final String callCatchAllName = r'call$catchAll';
+ final String reflectableField = r'$reflectable';
/**
* Map from top-level or static elements to their unique identifiers provided
@@ -243,6 +244,7 @@ class Namer implements ClosureNamer {
case 'GETTER_PREFIX': return getterPrefix;
case 'SETTER_PREFIX': return setterPrefix;
case 'CALL_CATCH_ALL': return callCatchAllName;
+ case 'REFLECTABLE': return reflectableField;
default:
compiler.reportError(
node, MessageKind.GENERIC,

Powered by Google App Engine
This is Rietveld 408576698