Add safety fallback for new types being added

This commit is contained in:
Simon Binder 2023-05-10 10:18:24 +02:00
parent 45dc099440
commit 052abfbab2
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 3 additions and 0 deletions

View File

@ -281,6 +281,9 @@ class _AddFromDartType {
visitTypeParameterType(type);
} else if (type is VoidType) {
visitVoidType(type);
} else {
_builder.addText(
'/* unknown type ${type.getDisplayString(withNullability: true)} */');
}
}