[cfe][InternalNodes] Use internal/external helpers to create AST nodes
This replaces the creation of many AST nodes with calls to either the internal or external helpers, to help enforce passing of needed arguments, in particular file offset which are generally not required. Change-Id: Id9b2449f398492dd5fb8bf0c71fbe3ec04444c95 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/497842 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
committed by
dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
999f8d4ff6
commit
119d9d72b7
@@ -1550,7 +1550,7 @@ class Arguments extends TreeNode {
|
||||
positional = <Expression>[],
|
||||
named = <NamedExpression>[];
|
||||
|
||||
factory Arguments.forwarded(FunctionNode function, Library library) {
|
||||
factory Arguments.forwarded(FunctionNode function) {
|
||||
return new Arguments(
|
||||
function.positionalParameters
|
||||
.map<Expression>((p) => new VariableGet(p))
|
||||
|
||||
Reference in New Issue
Block a user