Opaque type support

This commit is contained in:
Alexandros Naskos
2020-10-10 12:25:50 +03:00
parent c1d7f0ffa7
commit 162f1b2fbe
3 changed files with 8 additions and 1 deletions

View File

@@ -914,6 +914,10 @@ pub const TypeWithHandle = struct {
return self.isContainer(.Keyword_union);
}
pub fn isOpaqueType(self: TypeWithHandle) bool {
return self.isContainer(.Keyword_opaque);
}
pub fn isTypeFunc(self: TypeWithHandle) bool {
switch (self.type.data) {
.other => |n| {