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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 40613003: Hoist generics-related functions from ClassMirror to TypeMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | sdk/lib/mirrors/mirrors.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 1e79507fd0c48353b995e7940a27a7702bb29b36..8ae0e48ebddda3f36b530a17f8f8701b0e078403 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -1415,9 +1415,14 @@ class _SpecialTypeMirrorImpl extends _LocalMirrorImpl
final DeclarationMirror owner = null;
final Symbol simpleName;
final bool isTopLevel = true;
- // Fixed length 0, therefore immutable.
final List<InstanceMirror> metadata = emptyList;
+ List<TypeVariableMirror> get typeVariables => emptyList;
+ List<TypeMirror> get typeArguments => emptyList;
+
+ bool get isOriginalDeclaration => true;
+ TypeMirror get originalDeclaration => this;
+
SourceLocation get location {
throw new UnimplementedError('TypeMirror.location is not implemented');
}
« no previous file with comments | « no previous file | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698