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

Unified Diff: runtime/lib/mirrors_impl.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: maintain dart2js coverage Created 7 years, 2 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/lib/mirrors.cc ('k') | runtime/lib/mirrors_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index 1d93efa6f227a304b3eb52253bc504ae49ad2f7b..f0d5aa9158ae2a1df04f7478315a9f9bc2d063de 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -289,7 +289,7 @@ class _LocalInstanceMirrorImpl extends _LocalObjectMirrorImpl
_LocalInstanceMirrorImpl mirror =
reflect(invocation);
_invokeOnClosure = reflectClass(invocation.runtimeType)
- .getField(const Symbol('_invokeOnClosure')).reflectee;
+ .getField(MirrorSystem.getSymbol('_invokeOnClosure', mirror.type.owner)).reflectee;
}
return _invokeOnClosure(reflectee, invocation);
}
@@ -646,7 +646,7 @@ class _LocalClassMirrorImpl extends _LocalObjectMirrorImpl
}
}
- String toString() => "ClassMirror on '${_n(simpleName)}'";
+ String toString() => "ClassMirror on '${MirrorSystem.getName(simpleName)}'";
InstanceMirror newInstance(Symbol constructorName,
List positionalArguments,
@@ -1158,7 +1158,7 @@ class _LocalMethodMirrorImpl extends _LocalDeclarationMirrorImpl
}
}
- String toString() => "MethodMirror on '${_n(simpleName)}'";
+ String toString() => "MethodMirror on '${MirrorSystem.getName(simpleName)}'";
static dynamic _MethodMirror_owner(reflectee)
native "MethodMirror_owner";
@@ -1204,7 +1204,7 @@ class _LocalVariableMirrorImpl extends _LocalDeclarationMirrorImpl
return _type;
}
- String toString() => "VariableMirror on '${_n(simpleName)}'";
+ String toString() => "VariableMirror on '${MirrorSystem.getName(simpleName)}'";
static _VariableMirror_type(reflectee)
native "VariableMirror_type";
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/lib/mirrors_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698