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

Unified Diff: lib/compiler/implementation/typechecker.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two long lines. Created 8 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
Index: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index d5a28e217d7ed8dcd23c22aab0da7e279c434078..d8a547290b4ba8c3b220f3ae7a9d51e5f25535f8 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -605,7 +605,7 @@ class TypeCheckerVisitor implements Visitor<DartType> {
}
fail(selector, 'unexpected operator ${name}');
- } else if (node.isPropertyAccess) {
+ } else if (node.isPropertyAccessOrTypeReference) {
if (node.receiver !== null) {
// TODO(karlklose): we cannot handle fields.
return unhandledExpression();

Powered by Google App Engine
This is Rietveld 408576698