@@ -136,9 +136,9 @@ ElseComposition
136
136
Composition
137
137
" extends" TypeExpression ArgumentList-opt
138
138
" implements" ExtendedTypeExpression
139
- " delegates" ExtendedTypeExpression " (" Expression " )"
139
+ " delegates" AnyTypeExpression " (" Expression " )"
140
140
" incorporates" IncorporatesFinish
141
- " into" ExtendedTypeExpression
141
+ " into" AnyTypeExpression
142
142
ImportClause QualifiedName VersionRequirement-opt
143
143
" default" " (" Expression " )"
144
144
@@ -579,7 +579,7 @@ UsingStatement
579
579
" using" " (" UsingResources " )" StatementBlock
580
580
581
581
TypeDefStatement
582
- " typedef" ExtendedTypeExpression " as" Name " ;"
582
+ " typedef" AnyTypeExpression " as" Name " ;"
583
583
584
584
#
585
585
# expressions
@@ -730,8 +730,8 @@ PostfixExpression
730
730
PostfixExpression NoWhitespace " ?"
731
731
PostfixExpression " ." " &" -opt Name TypeParameterTypeList-opt
732
732
PostfixExpression " .new" NewFinish
733
- PostfixExpression " .as" " (" ExtendedTypeExpression " )"
734
- PostfixExpression " .is" " (" ExtendedTypeExpression " )"
733
+ PostfixExpression " .as" " (" AnyTypeExpression " )"
734
+ PostfixExpression " .is" " (" AnyTypeExpression " )"
735
735
736
736
ArrayDims
737
737
" [" DimIndicators-opt " ]"
@@ -1086,6 +1086,22 @@ TypeExpression
1086
1086
ExtendedTypeExpression
1087
1087
ExtendedUnionedTypeExpression
1088
1088
1089
+ AnyTypeExpression
1090
+ AnonTypeExpression
1091
+ ExtendedTypeExpression
1092
+
1093
+ AnonTypeExpression
1094
+ " {" NameOrSignatureList " ;" " }" # note: at least one name or signature is required
1095
+
1096
+ NameOrSignatureList
1097
+ NameOrSignature
1098
+ NameOrSignatureList " ;" NameOrSignature
1099
+
1100
+ NameOrSignature
1101
+ Name # ref to 1 + property/method
1102
+ PropertyModifiers-opt TypeExpression Name # property
1103
+ MethodModifiers-opt TypeParameterList-opt MethodIdentity ParameterList # method
1104
+
1089
1105
# ' +' creates a union of two types; ' -' creates a difference of two types
1090
1106
UnionedTypeExpression
1091
1107
IntersectingTypeExpression
@@ -1102,6 +1118,7 @@ IntersectingTypeExpression
1102
1118
IntersectingTypeExpression | NonBiTypeExpression
1103
1119
1104
1120
ExtendedIntersectingTypeExpression
1121
+ AnonTypeExpression
1105
1122
ExtendedNonBiTypeExpression
1106
1123
ExtendedIntersectingTypeExpression | ExtendedNonBiTypeExpression
1107
1124
0 commit comments