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

Issue 2713173003: Add AST factories for formal parameters with all optional named parameters. (Closed)

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

Description

Add AST factories for formal parameters with all optional named parameters. Also add 'covariantKeyword' to the Impl constructors and named factories. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/3d88437bda182705d8c0b74483683e716606ac25

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -158 lines) Patch
M pkg/analyzer/lib/dart/ast/ast.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/dart/ast/ast_factory.dart View 8 chunks +80 lines, -16 lines 2 comments Download
M pkg/analyzer/lib/src/dart/ast/ast.dart View 5 chunks +13 lines, -6 lines 0 comments Download
M pkg/analyzer/lib/src/dart/ast/ast_factory.dart View 4 chunks +43 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/dart/ast/utilities.dart View 6 chunks +52 lines, -46 lines 0 comments Download
M pkg/analyzer/lib/src/generated/parser.dart View 3 chunks +46 lines, -53 lines 0 comments Download
M pkg/analyzer/test/src/dart/ast/utilities_test.dart View 4 chunks +24 lines, -34 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
scheglov
3 years, 10 months ago (2017-02-24 18:14:37 UTC) #1
Brian Wilkerson
The downside of this approach is that the parameter name is now part of the ...
3 years, 10 months ago (2017-02-24 18:27:59 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 3d88437bda182705d8c0b74483683e716606ac25 (presubmit successful).
3 years, 10 months ago (2017-02-24 20:09:50 UTC) #4
Paul Berry
3 years, 10 months ago (2017-02-24 20:29:04 UTC) #5
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2713173003/diff/1/pkg/analyzer/lib/dart/ast/a...
File pkg/analyzer/lib/dart/ast/ast_factory.dart (right):

https://codereview.chromium.org/2713173003/diff/1/pkg/analyzer/lib/dart/ast/a...
pkg/analyzer/lib/dart/ast/ast_factory.dart:423: FieldFormalParameter
fieldFormalParameter(
Consider marking as @deprecated and adding a comment instructing clients to
start using fieldFormalParameter2.

Same for the other factory methods in this CL.

Powered by Google App Engine
This is Rietveld 408576698