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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 8277013: If we run into a "super()" in a function body, report and error and parse it (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Now with single-line change Created 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
index 3e414d016fbdf91d61a53fa595d21320ba9d6947..924902cbd634c1e92506a4053a9fdc026240ab0e 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -2298,6 +2298,7 @@ public class DartParser extends CompletionHooksParserBase {
DartExpression expression = tryParseAssignableSelector(receiver);
if (expression == null) {
reportError(position(), DartCompilerErrorCode.EXPECTED_PERIOD_OR_LEFT_BRACKET);
+ expression = receiver;
jat 2011/10/13 20:24:08 You should get one of the IDE guys to sign off on
codefu 2011/10/13 20:29:16 Steve is on the reviewers list.
}
return expression;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698