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

Issue 9185013: Issue 965: Report error for static local function (Closed)

Created:
8 years, 11 months ago by scheglov
Modified:
8 years, 11 months ago
Reviewers:
zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -5 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 4 chunks +6 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 2 chunks +2 lines, -1 line 2 comments Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 1 chunk +5 lines, -2 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
scheglov
8 years, 11 months ago (2012-01-11 18:07:37 UTC) #1
zundel
8 years, 11 months ago (2012-01-11 18:17:17 UTC) #2
lgtm with nit

http://codereview.chromium.org/9185013/diff/1/compiler/java/com/google/dart/c...
File compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (right):

http://codereview.chromium.org/9185013/diff/1/compiler/java/com/google/dart/c...
compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java:64:
LOCAL_CANNOT_BE_STATIC("Local function may not be static"),
enum says "CANNOT" text says "may not"

http://codereview.chromium.org/9185013/diff/1/compiler/java/com/google/dart/c...
compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java:75:
TOP_LEVEL_CANNOT_BE_STATIC("Top-level field or method may not be static"),
same comment

Powered by Google App Engine
This is Rietveld 408576698