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

Issue 15269005: Report ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY and other body-related errors (Closed)

Created:
7 years, 7 months ago by scheglov
Modified:
7 years, 7 months ago
Reviewers:
jwren, Brian Wilkerson
CC:
reviews_dartlang.org, lukeechurch_gmail.com
Visibility:
Public.

Description

Report ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY and other body-related errors R=brianwilkerson@google.com, jwren@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=22891

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes for review comments. #

Messages

Total messages: 5 (0 generated)
scheglov
7 years, 7 months ago (2013-05-20 01:27:45 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/15269005/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java File editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java (right): https://codereview.chromium.org/15269005/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java#newcode258 editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java:258: ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY); The convention for this class is for ...
7 years, 7 months ago (2013-05-20 13:43:09 UTC) #2
jwren
On 2013/05/20 13:43:09, Brian Wilkerson wrote: > LGTM > > https://codereview.chromium.org/15269005/diff/1/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java > File > editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java ...
7 years, 7 months ago (2013-05-20 14:57:56 UTC) #3
scheglov
Committed patchset #2 manually as r22891 (presubmit successful).
7 years, 7 months ago (2013-05-20 15:56:57 UTC) #4
scheglov
7 years, 7 months ago (2013-05-20 15:57:12 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/15269005/diff/1/editor/tools/plugins/com.goog...
File
editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
(right):

https://codereview.chromium.org/15269005/diff/1/editor/tools/plugins/com.goog...
editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java:258:
ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY);
On 2013/05/20 13:43:09, Brian Wilkerson wrote:
> The convention for this class is for each method to test a single way of
> generating a single error. Could we remove the body so that only one error is
> being tested?

Done.

https://codereview.chromium.org/15269005/diff/1/editor/tools/plugins/com.goog...
editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java:583:
public void test_factoryConstructorWithoutBody() throws Exception {
On 2013/05/20 13:43:09, Brian Wilkerson wrote:
> We also have a convention of matching the method name to the error name.
Perhaps
> this method could be named "test_factoryWithoutBody".

Done.

Powered by Google App Engine
This is Rietveld 408576698