Skip to content

Commit 42c58c1

Browse files
scheglovCommit Queue
authored and
Commit Queue
committed
Add missed 'typeArguments' to FunctionExpressionInvocation.childEntities
Change-Id: I2cc5873a35ef4a7b8f36560c80c9dff7fc3820be Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/261942 Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent d8f9283 commit 42c58c1

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

pkg/analyzer/lib/src/dart/ast/ast.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5992,6 +5992,7 @@ class FunctionExpressionInvocationImpl extends InvocationExpressionImpl
59925992
@override
59935993
ChildEntities get _childEntities => ChildEntities()
59945994
..addNode('function', function)
5995+
..addNode('typeArguments', typeArguments)
59955996
..addNode('argumentList', argumentList);
59965997

59975998
@override

pkg/analyzer/test/src/dart/resolution/function_expression_invocation_test.dart

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ FunctionExpressionInvocation
146146
token: a
147147
staticElement: self::@function::f::@parameter::a
148148
staticType: A
149+
typeArguments: TypeArgumentList
150+
leftBracket: <
151+
arguments
152+
NamedType
153+
name: SimpleIdentifier
154+
token: int
155+
staticElement: dart:core::@class::int
156+
staticType: null
157+
type: int
158+
rightBracket: >
149159
argumentList: ArgumentList
150160
leftParenthesis: (
151161
rightParenthesis: )
@@ -174,6 +184,16 @@ FunctionExpressionInvocation
174184
token: x
175185
staticElement: self::@function::f::@parameter::x
176186
staticType: Never
187+
typeArguments: TypeArgumentList
188+
leftBracket: <
189+
arguments
190+
NamedType
191+
name: SimpleIdentifier
192+
token: int
193+
staticElement: dart:core::@class::int
194+
staticType: null
195+
type: int
196+
rightBracket: >
177197
argumentList: ArgumentList
178198
leftParenthesis: (
179199
arguments
@@ -215,6 +235,16 @@ FunctionExpressionInvocation
215235
token: x
216236
staticElement: self::@function::f::@parameter::x
217237
staticType: Never?
238+
typeArguments: TypeArgumentList
239+
leftBracket: <
240+
arguments
241+
NamedType
242+
name: SimpleIdentifier
243+
token: int
244+
staticElement: dart:core::@class::int
245+
staticType: null
246+
type: int
247+
rightBracket: >
218248
argumentList: ArgumentList
219249
leftParenthesis: (
220250
arguments
@@ -500,6 +530,22 @@ FunctionExpressionInvocation
500530
staticType: dynamic
501531
rightParenthesis: )
502532
staticType: dynamic
533+
typeArguments: TypeArgumentList
534+
leftBracket: <
535+
arguments
536+
NamedType
537+
name: SimpleIdentifier
538+
token: bool
539+
staticElement: dart:core::@class::bool
540+
staticType: null
541+
type: bool*
542+
NamedType
543+
name: SimpleIdentifier
544+
token: int
545+
staticElement: dart:core::@class::int
546+
staticType: null
547+
type: int*
548+
rightBracket: >
503549
argumentList: ArgumentList
504550
leftParenthesis: (
505551
arguments

0 commit comments

Comments
 (0)