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

Issue 8277013: If we run into a "super()" in a function body, report and error and parse it (Closed)

Created:
9 years, 2 months ago by codefu
Modified:
9 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

If we run into a "super()" in a function body, report and error and parse it as a literal. R=jat@google.com,messick@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=414

Patch Set 1 #

Total comments: 4

Patch Set 2 : Now with single-line change #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 1 chunk +1 line, -0 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
codefu
9 years, 2 months ago (2011-10-13 19:26:17 UTC) #1
jat
LGTM http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2107 compiler/java/com/google/dart/compiler/parser/DartParser.java:2107: superExpression = parseLiteral(); Why literal here? I think ...
9 years, 2 months ago (2011-10-13 19:30:33 UTC) #2
codefu
http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2107 compiler/java/com/google/dart/compiler/parser/DartParser.java:2107: superExpression = parseLiteral(); On 2011/10/13 19:30:33, jat wrote: > ...
9 years, 2 months ago (2011-10-13 19:32:23 UTC) #3
jat
http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2107 compiler/java/com/google/dart/compiler/parser/DartParser.java:2107: superExpression = parseLiteral(); On 2011/10/13 19:32:23, codefu wrote: > ...
9 years, 2 months ago (2011-10-13 19:43:43 UTC) #4
codefu
http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8277013/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2107 compiler/java/com/google/dart/compiler/parser/DartParser.java:2107: superExpression = parseLiteral(); On 2011/10/13 19:43:43, jat wrote: > ...
9 years, 2 months ago (2011-10-13 20:17:44 UTC) #5
jat
LGTM http://codereview.chromium.org/8277013/diff/4002/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8277013/diff/4002/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2301 compiler/java/com/google/dart/compiler/parser/DartParser.java:2301: expression = receiver; You should get one of ...
9 years, 2 months ago (2011-10-13 20:24:08 UTC) #6
codefu
http://codereview.chromium.org/8277013/diff/4002/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): http://codereview.chromium.org/8277013/diff/4002/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode2301 compiler/java/com/google/dart/compiler/parser/DartParser.java:2301: expression = receiver; On 2011/10/13 20:24:08, jat wrote: > ...
9 years, 2 months ago (2011-10-13 20:29:16 UTC) #7
Brian Wilkerson
9 years, 2 months ago (2011-10-13 20:41:30 UTC) #8
Steve is on vacation, but it LGTM.

Powered by Google App Engine
This is Rietveld 408576698