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

Issue 2985293002: Add optional FunctionType.positionalParameterNames and use them to resynthesize function-type forma… (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

Add optional FunctionType.positionalParameterNames and use them to resynthesize function-type formal parameters in Analyzer. This will be also used as an alternative approach to support of typedefs in Analyzer. The previous one was reverted in e431e93e872d9a1c97a5177ebb09d5416f1d659a, because it caused problems during storing parameters of generic Function(s). R=ahe@google.com, brianwilkerson@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/66663f7fd6c088ee087f98f3543b80dfea600c4a

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -54 lines) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 2 chunks +30 lines, -3 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 1 chunk +13 lines, -1 line 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart View 6 chunks +4 lines, -46 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart View 3 chunks +4 lines, -1 line 0 comments Download
M pkg/kernel/lib/ast.dart View 1 chunk +8 lines, -1 line 4 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 chunk +6 lines, -2 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 3 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 4 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
3 years, 4 months ago (2017-07-28 19:36:04 UTC) #1
Brian Wilkerson
lgtm
3 years, 4 months ago (2017-07-28 19:56:27 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2985293002/diff/1/pkg/kernel/lib/ast.dart File pkg/kernel/lib/ast.dart (right): https://codereview.chromium.org/2985293002/diff/1/pkg/kernel/lib/ast.dart#newcode4096 pkg/kernel/lib/ast.dart:4096: /// not `null`. it might be a bit ...
3 years, 4 months ago (2017-07-31 17:43:08 UTC) #3
scheglov
https://codereview.chromium.org/2985293002/diff/1/pkg/kernel/lib/ast.dart File pkg/kernel/lib/ast.dart (right): https://codereview.chromium.org/2985293002/diff/1/pkg/kernel/lib/ast.dart#newcode4096 pkg/kernel/lib/ast.dart:4096: /// not `null`. On 2017/07/31 17:43:08, Siggi Cherem (dart-lang) ...
3 years, 4 months ago (2017-07-31 20:35:30 UTC) #4
scheglov
Committed patchset #1 (id:1) manually as 66663f7fd6c088ee087f98f3543b80dfea600c4a (presubmit successful).
3 years, 4 months ago (2017-07-31 21:09:14 UTC) #6
Siggi Cherem (dart-lang)
3 years, 4 months ago (2017-07-31 22:09:29 UTC) #7
Message was sent while issue was closed.
Peter/Kevin - I'd like a second opinion from one of you on the changes here. I
just forgot to include this question on my first reply.

Konstantin has proposed two different ways to represent parameters name
information to reconstitute typedefs in the element model, it would be good to
hear your thoughts.

This CL has the second approach. The first approach was to store the extra
information directly in the Typedef nodes (see
https://codereview.chromium.org/2990783002/diff/40001/pkg/kernel/lib/ast.dart)

Hopefully you agree with the approach, otherwise we can always go back and amend
it again.

Powered by Google App Engine
This is Rietveld 408576698