Introduce isDecl and getDeclType

fix enum logic issue

fix tests

guard against null types
This commit is contained in:
Azoy
2021-04-18 01:27:46 -04:00
parent f75f5fe78d
commit 9ed732f0ab
62 changed files with 391 additions and 569 deletions

View File

@@ -91,7 +91,7 @@ deriveBridgedNSError_enum_nsErrorDomain(
// }
// }
auto stringTy = derived.Context.getStringDecl()->getDeclaredInterfaceType();
auto stringTy = derived.Context.getStringType();
// Define the property.
VarDecl *propDecl;