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

Issue 2842273002: Remove AstFactory.field() (Closed)

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

Description

Remove AstFactory.field() This method doesn't really belong in AstFactory, because it's not used by BodyBuilder; it's used by KernelFieldBuilder, which always builds kernel objects. We only need to abstract the objects that are created by BodyBuilder, since only BodyBuilder is going to have to be capable of building analyzer ASTs. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/046a62a54fbb0cf546260787a7ec1bad8188d300

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -10 lines) Patch
M pkg/front_end/lib/src/fasta/builder/ast_factory.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart View 1 chunk +0 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart View 2 chunks +5 lines, -2 lines 1 comment Download

Messages

Total messages: 6 (2 generated)
Paul Berry
3 years, 8 months ago (2017-04-26 20:39:48 UTC) #2
scheglov
LGTM
3 years, 8 months ago (2017-04-26 20:40:31 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as 046a62a54fbb0cf546260787a7ec1bad8188d300 (presubmit successful).
3 years, 8 months ago (2017-04-26 20:48:07 UTC) #5
ahe
3 years, 8 months ago (2017-04-27 09:27:20 UTC) #6
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2842273002/diff/1/pkg/front_end/lib/src/fasta...
File pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart (right):

https://codereview.chromium.org/2842273002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart:36: final
TypeInferenceEngine typeInferenceEngine;
I think you can remove the above two fields and get them from library.

Powered by Google App Engine
This is Rietveld 408576698