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

Issue 2727753002: Parse InstanceCreationExpression with Fasta. (Closed)

Created:
3 years, 9 months ago by scheglov
Modified:
3 years, 9 months ago
Reviewers:
ahe, Paul Berry
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -106 lines) Patch
M pkg/analyzer/test/generated/parser_fasta_test.dart View 9 chunks +0 lines, -83 lines 0 comments Download
M pkg/analyzer/test/generated/parser_test.dart View 13 chunks +14 lines, -15 lines 0 comments Download
M pkg/compiler/lib/src/parser/element_listener.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart View 1 chunk +26 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/listener.dart View 1 chunk +4 lines, -0 lines 3 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 2 chunks +6 lines, -0 lines 0 comments Download
M pkg/front_end/test/fasta/kompile.status View 5 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
3 years, 9 months ago (2017-03-01 20:55:40 UTC) #1
Paul Berry
lgtm
3 years, 9 months ago (2017-03-01 20:57:54 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 86b5a088ad4007f01265caa34ff294f858d068b3 (presubmit successful).
3 years, 9 months ago (2017-03-01 21:04:56 UTC) #4
ahe
lgtm Great idea! https://codereview.chromium.org/2727753002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart File pkg/front_end/lib/src/fasta/parser/listener.dart (right): https://codereview.chromium.org/2727753002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart#newcode845 pkg/front_end/lib/src/fasta/parser/listener.dart:845: void handleNoConstructorReferenceContinuationAfterTypeArguments(Token token) { I'd like ...
3 years, 9 months ago (2017-03-02 07:23:49 UTC) #5
scheglov
https://codereview.chromium.org/2727753002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart File pkg/front_end/lib/src/fasta/parser/listener.dart (right): https://codereview.chromium.org/2727753002/diff/1/pkg/front_end/lib/src/fasta/parser/listener.dart#newcode845 pkg/front_end/lib/src/fasta/parser/listener.dart:845: void handleNoConstructorReferenceContinuationAfterTypeArguments(Token token) { On 2017/03/02 07:23:49, ahe wrote: ...
3 years, 9 months ago (2017-03-02 16:26:27 UTC) #6
ahe
3 years, 9 months ago (2017-03-02 17:23:18 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2727753002/diff/1/pkg/front_end/lib/src/fasta...
File pkg/front_end/lib/src/fasta/parser/listener.dart (right):

https://codereview.chromium.org/2727753002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/parser/listener.dart:845: void
handleNoConstructorReferenceContinuationAfterTypeArguments(Token token) {
On 2017/03/02 16:26:27, scheglov wrote:
> On 2017/03/02 07:23:49, ahe wrote:
> > I'd like to see documentation on this method, and possibly a shorter name.
> 
> I thought it is the established order this is codebase to don't write
> documentation and leave it to the reader to guess what is used for what.

Well, I'm trying to atone for my past mistakes.

I was thinking something like:

Handle's this case:

    a.b<t>

Where there's no identifier after the type arguments.

Is that correctly understood?

> As for name, I used the same name as
> IdentifierContext.constructorReferenceContinuationAfterTypeArguments, also for
> consistency.

OK.

Powered by Google App Engine
This is Rietveld 408576698