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

Unified Diff: frog/leg/typechecker.dart

Issue 9243011: Implement named constructors and resolving of redirecting constructors and super-initializers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move constructor name creation to lookup function. Created 8 years, 11 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: frog/leg/typechecker.dart
diff --git a/frog/leg/typechecker.dart b/frog/leg/typechecker.dart
index 1ef92c412665673696f87a058fd89f8012e09b02..6e7c891de11d9c6d2e30c9b30db6b85ebf8d91d4 100644
--- a/frog/leg/typechecker.dart
+++ b/frog/leg/typechecker.dart
@@ -504,8 +504,7 @@ class TypeCheckerVisitor implements Visitor<Type> {
if (node.typeName === null) return types.dynamicType;
Identifier identifier = node.typeName.asIdentifier();
if (identifier === null) {
- compiler.cancel('library prefix not implemented',
- node: node.typeName);
+ fail(node.typeName, 'library prefix not implemented');
}
// TODO(ahe): Why wasn't this resolved by the resolver?
Type type = lookupType(identifier.source, compiler, types);

Powered by Google App Engine
This is Rietveld 408576698