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

Issue 2706343002: Implement handleQualified with 1 dot. (Closed)

Created:
3 years, 10 months ago by Paul Berry
Modified:
3 years, 10 months ago
Reviewers:
ahe, scheglov
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -17 lines) Patch
M pkg/analyzer/test/generated/parser_fasta_test.dart View 4 chunks +3 lines, -10 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart View 2 chunks +17 lines, -7 lines 8 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
3 years, 10 months ago (2017-02-21 22:22:37 UTC) #2
scheglov
LGTM
3 years, 10 months ago (2017-02-21 22:26:52 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as fdb370ca833ca727f037797ae4581a7fe8f3bf46 (presubmit successful).
3 years, 10 months ago (2017-02-21 23:02:33 UTC) #5
ahe
lgtm One minor action item below: a long line. https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart File pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart (right): https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart#newcode462 pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart:462: ...
3 years, 10 months ago (2017-02-22 11:42:08 UTC) #6
Paul Berry
3 years, 10 months ago (2017-02-22 16:34:54 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta...
File pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart (right):

https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart:462: // element?
On 2017/02/22 11:42:08, ahe wrote:
> We should try to share this method with BodyBuilder.
> 
> Here's how I handle errors there:
> 
>         push(const DynamicType());
>         addCompileTimeError(beginToken.charOffset,
>             "Can't be used as a type: '${debugName(prefix, suffix)}'.");
>         return;
> 
> But it seems you can do slightly better by installing dynamic on the type
name.

Acknowledged.

https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart:466: // set the static
element at the time that handleIdentifier was called.
On 2017/02/22 11:42:08, ahe wrote:
> For inspiration (or code sharing) take a look at
> BodyBuilder.builderToFirstExpression.

Acknowledged.

https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart:954: // TODO(paulberry):
resolve [identifier].
On 2017/02/22 11:42:08, ahe wrote:
> I'm using SendAccessor to handle this in BodyBuilder.

Acknowledged.

https://codereview.chromium.org/2706343002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart:955:
push(ast.prefixedIdentifier(prefix, toAnalyzerToken(period), identifier));
On 2017/02/22 11:42:08, ahe wrote:
> Long line.

Thanks.  Konstantin fixed this in https://codereview.chromium.org/2705333002.

Powered by Google App Engine
This is Rietveld 408576698