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

Issue 9288021: Issue 1287. Allow to invoke function literal. (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 #

Patch Set 2 : Forgot DartReturnBlock class. #

Patch Set 3 : Simplify function declaration check #

Total comments: 6

Patch Set 4 : More tests, check for function name. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -21 lines) Patch
A compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java View 1 1 chunk +15 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 2 3 8 chunks +34 lines, -18 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 1 2 3 1 chunk +81 lines, -0 lines 1 comment Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java View 1 2 3 1 chunk +1 line, -1 line 1 comment Download
M tests/language/src/FunctionTest.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
8 years, 11 months ago (2012-01-25 15:54:24 UTC) #1
zundel
https://chromiumcodereview.appspot.com/9288021/diff/4/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (left): https://chromiumcodereview.appspot.com/9288021/diff/4/compiler/java/com/google/dart/compiler/parser/DartParser.java#oldcode2405 compiler/java/com/google/dart/compiler/parser/DartParser.java:2405: if (isDeclaration && namePtr[0] == null) { note that ...
8 years, 11 months ago (2012-01-25 23:15:40 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/9288021/diff/4/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (left): https://chromiumcodereview.appspot.com/9288021/diff/4/compiler/java/com/google/dart/compiler/parser/DartParser.java#oldcode2405 compiler/java/com/google/dart/compiler/parser/DartParser.java:2405: if (isDeclaration && namePtr[0] == null) { On 2012/01/25 ...
8 years, 11 months ago (2012-01-26 17:48:37 UTC) #3
zundel
https://chromiumcodereview.appspot.com/9288021/diff/4/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java File compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (right): https://chromiumcodereview.appspot.com/9288021/diff/4/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java#newcode504 compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java:504: } On 2012/01/25 23:15:40, zundel wrote: > the test ...
8 years, 11 months ago (2012-01-26 18:26:36 UTC) #4
zundel
8 years, 11 months ago (2012-01-26 20:02:56 UTC) #5
lgtm

LGTM

Offline discussion clarified where functionExpression and functionSignature is
valid.  For a standalone statement with no selectors,  the grammar seems to
specify that a functionSignature must be used.

Re-instating the old test exposes an unrelated bug which we can address
separately.

Powered by Google App Engine
This is Rietveld 408576698