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

Issue 2990783002: Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize t… (Closed)

Created:
3 years, 4 months ago by scheglov
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize typedefs from Kernel. R=ahe@google.com, brianwilkerson@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/afc392b66d0c0abbc4db2f432ed4b26b3d946920

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes for review comments. #

Total comments: 3

Patch Set 3 : Test for named parameters. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -88 lines) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 1 2 9 chunks +48 lines, -8 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart View 1 2 4 chunks +0 lines, -75 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart View 1 5 chunks +28 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart View 1 1 chunk +0 lines, -1 line 0 comments Download
M pkg/kernel/lib/ast.dart View 3 chunks +26 lines, -0 lines 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 2 chunks +12 lines, -0 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/kernel/lib/verifier.dart View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
scheglov
3 years, 4 months ago (2017-07-26 21:17:23 UTC) #1
Brian Wilkerson
lgtm, at least for the analyzer portions
3 years, 4 months ago (2017-07-26 21:29:50 UTC) #2
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2990783002/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart (right): https://codereview.chromium.org/2990783002/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart#newcode83 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart:83: KernelFunctionTypeParameters buildParameters(LibraryBuilder library) { Any reason to have this ...
3 years, 4 months ago (2017-07-26 22:32:44 UTC) #3
scheglov
PTAL https://codereview.chromium.org/2990783002/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart (right): https://codereview.chromium.org/2990783002/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart#newcode83 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart:83: KernelFunctionTypeParameters buildParameters(LibraryBuilder library) { On 2017/07/26 22:32:44, Siggi ...
3 years, 4 months ago (2017-07-27 16:40:50 UTC) #4
Brian Wilkerson
still lgtm
3 years, 4 months ago (2017-07-27 16:51:58 UTC) #5
Siggi Cherem (dart-lang)
thanks, lgtm after dealing with the sorting question. https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart (right): https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart#newcode127 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart:127: } ...
3 years, 4 months ago (2017-07-27 18:31:09 UTC) #6
scheglov
https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart (right): https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart#newcode127 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart:127: } On 2017/07/27 18:31:09, Siggi Cherem (dart-lang) wrote: > ...
3 years, 4 months ago (2017-07-27 18:33:53 UTC) #7
scheglov
https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart (right): https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart#newcode127 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart:127: } On 2017/07/27 18:33:53, scheglov wrote: > On 2017/07/27 ...
3 years, 4 months ago (2017-07-27 18:43:46 UTC) #8
scheglov
Committed patchset #3 (id:40001) manually as afc392b66d0c0abbc4db2f432ed4b26b3d946920 (presubmit successful).
3 years, 4 months ago (2017-07-27 18:53:27 UTC) #10
Siggi Cherem (dart-lang)
3 years, 4 months ago (2017-07-27 19:10:44 UTC) #11
Message was sent while issue was closed.
On 2017/07/27 18:43:46, scheglov wrote:
>
https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/f...
> File
pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart
> (right):
> 
>
https://codereview.chromium.org/2990783002/diff/20001/pkg/front_end/lib/src/f...
>
pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart:127:
> }
> On 2017/07/27 18:33:53, scheglov wrote:
> > On 2017/07/27 18:31:09, Siggi Cherem (dart-lang) wrote:
> > > Just one pending question: do we need to sort by name? or do we normally
> keep
> > > the declaration order in other places?
> > 
> > I will add sorting, but I don't know why we need this.
> 
> Actually, I see that we sort named parameters in types, but don't see sorting
> for AST.

Sounds good - this is why I was asking (because I saw it on the types). Thanks
for checking about the ASTs

> So, I will keep not add sorting.
> This might be helpful to keep original order for the time when we start
matching
> Analyzer AST with element model.

Powered by Google App Engine
This is Rietveld 408576698