@@ -1161,22 +1161,22 @@ class _ExternalTypeVisitor extends DartTypeVisitor {
1161
1161
}
1162
1162
}
1163
1163
1164
- visitCovariant (DartType type) => type? .accept (this );
1164
+ void visitCovariant (DartType type) => type? .accept (this );
1165
1165
1166
- visitInvariant (DartType type) => shaker._invariantVisitor.visit (type);
1166
+ void visitInvariant (DartType type) => shaker._invariantVisitor.visit (type);
1167
1167
1168
- visitInvalidType (InvalidType node) {}
1168
+ void visitInvalidType (InvalidType node) {}
1169
1169
1170
- visitDynamicType (DynamicType node) {
1170
+ void visitDynamicType (DynamicType node) {
1171
1171
// TODO(asgerf): Find a suitable model for untyped externals, e.g. track
1172
1172
// them to the first type boundary.
1173
1173
}
1174
1174
1175
- visitVoidType (VoidType node) {}
1175
+ void visitVoidType (VoidType node) {}
1176
1176
1177
- visitVectorType (VectorType node) {}
1177
+ void visitVectorType (VectorType node) {}
1178
1178
1179
- visitInterfaceType (InterfaceType node) {
1179
+ void visitInterfaceType (InterfaceType node) {
1180
1180
if (isCovariant) {
1181
1181
shaker._addInstantiatedExternalSubclass (node.classNode);
1182
1182
}
@@ -1197,11 +1197,11 @@ class _ExternalTypeVisitor extends DartTypeVisitor {
1197
1197
}
1198
1198
}
1199
1199
1200
- visitTypedefType (TypedefType node) {
1200
+ void visitTypedefType (TypedefType node) {
1201
1201
shaker.addUsedTypedef (node.typedefNode);
1202
1202
}
1203
1203
1204
- visitFunctionType (FunctionType node) {
1204
+ void visitFunctionType (FunctionType node) {
1205
1205
visit (node.returnType);
1206
1206
for (int i = 0 ; i < node.positionalParameters.length; ++ i) {
1207
1207
visitContravariant (node.positionalParameters[i]);
@@ -1211,7 +1211,7 @@ class _ExternalTypeVisitor extends DartTypeVisitor {
1211
1211
}
1212
1212
}
1213
1213
1214
- visitTypeParameterType (TypeParameterType node) {}
1214
+ void visitTypeParameterType (TypeParameterType node) {}
1215
1215
1216
1216
/// Just treat a couple of whitelisted classes as having covariant type
1217
1217
/// parameters.
0 commit comments