File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
pkg/analyzer/lib/src/summary2 Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1106,8 +1106,9 @@ class DeclarationBuilderFromNode {
1106
1106
}
1107
1107
1108
1108
macro .TypeAnnotationImpl _typeAnnotation (ast.TypeAnnotation node) {
1109
+ node as ast.TypeAnnotationImpl ;
1109
1110
switch (node) {
1110
- case ast.GenericFunctionType ():
1111
+ case ast.GenericFunctionTypeImpl ():
1111
1112
return macro .FunctionTypeAnnotationImpl (
1112
1113
id: macro .RemoteInstance .uniqueId,
1113
1114
isNullable: node.question != null ,
@@ -1122,12 +1123,10 @@ class DeclarationBuilderFromNode {
1122
1123
returnType: _typeAnnotationOrDynamic (node.returnType),
1123
1124
typeParameters: _typeParameters (node.typeParameters),
1124
1125
);
1125
- case ast.NamedType ():
1126
+ case ast.NamedTypeImpl ():
1126
1127
return _namedType (node);
1127
- case ast.RecordTypeAnnotation ():
1128
+ case ast.RecordTypeAnnotationImpl ():
1128
1129
return _typeAnnotationRecord (node);
1129
- default :
1130
- throw UnimplementedError ('(${node .runtimeType }) $node ' );
1131
1130
}
1132
1131
}
1133
1132
You can’t perform that action at this time.
0 commit comments