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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 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/mirrors/dart2js_mirror.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
index d86c626689dffa56f5a01cdecf58f99a1baf6d0f..a00716e7d803da228ad85992f5cc8012cd0e0e0b 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
@@ -1084,7 +1084,8 @@ class Dart2JsInterfaceTypeMirror extends Dart2JsTypeElementMirror
bool get isObject => mirrors.compiler.objectClass == _type.element;
- bool get isDynamic => mirrors.compiler.dynamicClass == _type.element;
+ // TODO(johnniwinther): How to show malformed types?
+ bool get isDynamic => _type.isDynamic;
ClassMirror get originalDeclaration
=> new Dart2JsClassMirror(mirrors, _type.element);

Powered by Google App Engine
This is Rietveld 408576698