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

Unified Diff: dart/lib/compiler/implementation/scanner/class_element_parser.dart

Issue 11117022: Fix a crash related to obsolete factory syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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: dart/lib/compiler/implementation/scanner/class_element_parser.dart
diff --git a/dart/lib/compiler/implementation/scanner/class_element_parser.dart b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
index b2a4b031eceba4d9d4c0f58377cae3c63a095482..8251eb08d1211f30fbd5cdd72c78bd33de82c34d 100644
--- a/dart/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -99,6 +99,9 @@ class MemberListener extends NodeListener {
bool isUnary = operator.token.next.next.stringValue === ')';
return Elements.constructOperatorName(operator.source, isUnary);
} else {
+ if (receiver == null) {
Lasse Reichstein Nielsen 2012/10/15 08:34:37 What is it that isn't implemented?
ahe 2012/10/15 20:39:15 Library prefixes in factory names. The error messa
+ listener.cancel('not implemented', node: send.receiver);
+ }
return Elements.constructConstructorName(receiver.source,
selector.source);
}

Powered by Google App Engine
This is Rietveld 408576698