@@ -700,7 +700,7 @@ class TypeInfoTest {
700
700
'handleNoType ' ,
701
701
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
702
702
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
703
- 'endFunctionType Function' ,
703
+ 'endFunctionType Function null ' ,
704
704
]);
705
705
expectComplexInfo ('Function<T>() m' , expectedAfter: 'm' , expectedCalls: [
706
706
'beginTypeVariables <' ,
@@ -716,7 +716,7 @@ class TypeInfoTest {
716
716
'handleNoType ' ,
717
717
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
718
718
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
719
- 'endFunctionType Function' ,
719
+ 'endFunctionType Function null ' ,
720
720
]);
721
721
expectComplexInfo ('Function(int) m' , expectedAfter: 'm' , expectedCalls: [
722
722
'handleNoTypeVariables (' ,
@@ -734,7 +734,7 @@ class TypeInfoTest {
734
734
'endFormalParameter null null ) FormalParameterKind.mandatory '
735
735
'MemberKind.GeneralizedFunctionType' ,
736
736
'endFormalParameters 1 ( ) MemberKind.GeneralizedFunctionType' ,
737
- 'endFunctionType Function' ,
737
+ 'endFunctionType Function null ' ,
738
738
]);
739
739
expectComplexInfo ('Function<T>(int) m' , expectedAfter: 'm' , expectedCalls: [
740
740
'beginTypeVariables <' ,
@@ -760,7 +760,7 @@ class TypeInfoTest {
760
760
'endFormalParameter null null ) FormalParameterKind.mandatory'
761
761
' MemberKind.GeneralizedFunctionType' ,
762
762
'endFormalParameters 1 ( ) MemberKind.GeneralizedFunctionType' ,
763
- 'endFunctionType Function' ,
763
+ 'endFunctionType Function null ' ,
764
764
]);
765
765
766
766
expectComplexInfo ('Function(int x)' , required : true );
@@ -796,7 +796,7 @@ class TypeInfoTest {
796
796
'handleType C null' ,
797
797
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
798
798
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
799
- 'endFunctionType Function' ,
799
+ 'endFunctionType Function null ' ,
800
800
]);
801
801
}
802
802
@@ -878,7 +878,7 @@ class TypeInfoTest {
878
878
'handleType C null' ,
879
879
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
880
880
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
881
- 'endFunctionType Function' ,
881
+ 'endFunctionType Function null ' ,
882
882
]);
883
883
expectComplexInfo ('C<T> Function<T>(int x) Function<T>(int x)' ,
884
884
required : false , expectedAfter: 'Function' );
@@ -992,7 +992,7 @@ class TypeInfoTest {
992
992
'handleType C null' ,
993
993
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
994
994
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
995
- 'endFunctionType Function' ,
995
+ 'endFunctionType Function null ' ,
996
996
]);
997
997
expectComplexInfo ('C.a Function<T>(int x) Function<T>(int x)' ,
998
998
required : false , expectedAfter: 'Function' );
@@ -1071,7 +1071,7 @@ class TypeInfoTest {
1071
1071
'endFormalParameter null null x FormalParameterKind.mandatory '
1072
1072
'MemberKind.GeneralizedFunctionType' ,
1073
1073
'endFormalParameters 1 ( ) MemberKind.GeneralizedFunctionType' ,
1074
- 'endFunctionType Function' ,
1074
+ 'endFunctionType Function null ' ,
1075
1075
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1076
1076
'beginMetadataStar int' ,
1077
1077
'endMetadataStar 0' ,
@@ -1084,7 +1084,7 @@ class TypeInfoTest {
1084
1084
'endFormalParameter null null x FormalParameterKind.mandatory '
1085
1085
'MemberKind.GeneralizedFunctionType' ,
1086
1086
'endFormalParameters 1 ( ) MemberKind.GeneralizedFunctionType' ,
1087
- 'endFunctionType Function' ,
1087
+ 'endFunctionType Function null ' ,
1088
1088
]);
1089
1089
}
1090
1090
@@ -1097,7 +1097,7 @@ class TypeInfoTest {
1097
1097
'handleVoidKeyword void' ,
1098
1098
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1099
1099
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1100
- 'endFunctionType Function' ,
1100
+ 'endFunctionType Function null ' ,
1101
1101
]);
1102
1102
}
1103
1103
@@ -1108,7 +1108,7 @@ class TypeInfoTest {
1108
1108
'handleVoidKeyword void' ,
1109
1109
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1110
1110
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1111
- 'endFunctionType Function' ,
1111
+ 'endFunctionType Function null ' ,
1112
1112
]);
1113
1113
1114
1114
expectComplexInfo ('void Function<T>()' , required : true );
@@ -1367,7 +1367,7 @@ class TypeParamOrArgInfoTest {
1367
1367
'handleType S null' ,
1368
1368
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1369
1369
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1370
- 'endFunctionType Function' ,
1370
+ 'endFunctionType Function null ' ,
1371
1371
'endTypeArguments 1 < >'
1372
1372
]);
1373
1373
expectComplexTypeArg ('<void Function()>' ,
@@ -1379,7 +1379,7 @@ class TypeParamOrArgInfoTest {
1379
1379
'handleVoidKeyword void' ,
1380
1380
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1381
1381
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1382
- 'endFunctionType Function' ,
1382
+ 'endFunctionType Function null ' ,
1383
1383
'endTypeArguments 1 < >'
1384
1384
]);
1385
1385
expectComplexTypeArg ('<S<T>>' , typeArgumentCount: 1 , expectedCalls: [
@@ -1451,7 +1451,7 @@ class TypeParamOrArgInfoTest {
1451
1451
'handleNoType <' ,
1452
1452
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1453
1453
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1454
- 'endFunctionType Function' ,
1454
+ 'endFunctionType Function null ' ,
1455
1455
'endTypeArguments 1 < >' ,
1456
1456
'handleType S null' ,
1457
1457
'endTypeArguments 1 < >'
@@ -1468,7 +1468,7 @@ class TypeParamOrArgInfoTest {
1468
1468
'handleNoType <' ,
1469
1469
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1470
1470
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1471
- 'endFunctionType Function' ,
1471
+ 'endFunctionType Function null ' ,
1472
1472
'endTypeArguments 1 < >' ,
1473
1473
'handleType S null' ,
1474
1474
'endTypeArguments 1 < >'
@@ -1484,7 +1484,7 @@ class TypeParamOrArgInfoTest {
1484
1484
'handleVoidKeyword void' , // was 'handleNoType <'
1485
1485
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1486
1486
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1487
- 'endFunctionType Function' ,
1487
+ 'endFunctionType Function null ' ,
1488
1488
'endTypeArguments 1 < >' ,
1489
1489
'handleType S null' ,
1490
1490
'endTypeArguments 1 < >'
@@ -1502,7 +1502,7 @@ class TypeParamOrArgInfoTest {
1502
1502
'handleVoidKeyword void' , // was 'handleNoType <'
1503
1503
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1504
1504
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1505
- 'endFunctionType Function' ,
1505
+ 'endFunctionType Function null ' ,
1506
1506
'endTypeArguments 1 < >' ,
1507
1507
'handleType T null' ,
1508
1508
'endTypeArguments 1 < >' ,
@@ -1680,7 +1680,7 @@ class TypeParamOrArgInfoTest {
1680
1680
'handleVoidKeyword void' ,
1681
1681
'beginFormalParameters ( MemberKind.GeneralizedFunctionType' ,
1682
1682
'endFormalParameters 0 ( ) MemberKind.GeneralizedFunctionType' ,
1683
- 'endFunctionType Function' ,
1683
+ 'endFunctionType Function null ' ,
1684
1684
'endTypeVariable > 1 extends' ,
1685
1685
'handleNoType R' ,
1686
1686
'endTypeVariable , 0 null' ,
@@ -1943,7 +1943,7 @@ class TypeParamOrArgInfoTest {
1943
1943
'handleFormalParameterWithoutValue )' ,
1944
1944
'endFormalParameter null null ) FormalParameterKind.mandatory MemberKind.GeneralizedFunctionType' ,
1945
1945
'endFormalParameters 1 ( ) MemberKind.GeneralizedFunctionType' ,
1946
- 'endFunctionType Function' ,
1946
+ 'endFunctionType Function null ' ,
1947
1947
'endTypeVariable > 0 extends' ,
1948
1948
'endTypeVariables < >'
1949
1949
]);
@@ -2339,8 +2339,8 @@ class TypeInfoListener implements Listener {
2339
2339
}
2340
2340
2341
2341
@override
2342
- void endFunctionType (Token functionToken) {
2343
- calls.add ('endFunctionType $functionToken ' );
2342
+ void endFunctionType (Token functionToken, Token questionMark ) {
2343
+ calls.add ('endFunctionType $functionToken $ questionMark ' );
2344
2344
}
2345
2345
2346
2346
@override
0 commit comments