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

Issue 9015002: Check for abstract method with body and top-level abstract elements, issue 871 (Closed)

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

Description

Check for abstract method with body and top-level abstract elements, issue 871 http://code.google.com/p/dart/issues/detail?id=871 R=codefu@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=2867

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -39 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 9 chunks +35 lines, -5 lines 1 comment Download
M compiler/java/com/google/dart/compiler/parser/DartScanner.java View 1 chunk +8 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 1 chunk +2 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 1 chunk +29 lines, -25 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/IdeTests.java View 1 chunk +1 line, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 3 chunks +48 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 11 months ago (2011-12-29 15:44:06 UTC) #1
codefu
On 2011/12/29 15:44:06, scheglov wrote: LGTM with nit
8 years, 11 months ago (2011-12-29 16:02:53 UTC) #2
codefu
8 years, 11 months ago (2011-12-29 16:03:05 UTC) #3
http://codereview.chromium.org/9015002/diff/1/compiler/java/com/google/dart/c...
File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):

http://codereview.chromium.org/9015002/diff/1/compiler/java/com/google/dart/c...
compiler/java/com/google/dart/compiler/parser/DartParser.java:282: if
(isTopLevelAbstract) {
Couldn't this just be:
if(isTopLevelAbstract && !isParsingClass) {
  Error
}

Powered by Google App Engine
This is Rietveld 408576698