From 093bf1eb9149ba82258b5a5a159b2f54263b17c2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 31 Oct 2017 11:12:08 -0400 Subject: work in-progress: type checking associated types --- source/slang/emit.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source/slang/emit.cpp') diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 2e8ab58d4..3454a3f85 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -1039,7 +1039,6 @@ struct EmitVisitor UNEXPECTED(PtrType); #undef UNEXPECTED - void visitNamedExpressionType(NamedExpressionType* type, TypeEmitArg const& arg) { // Named types are valid for GLSL @@ -1053,6 +1052,11 @@ struct EmitVisitor EmitDeclarator(arg.declarator); } + void visitAssocTypeDeclRefType(AssocTypeDeclRefType* /*type*/, TypeEmitArg const& /*arg*/) + { + SLANG_UNREACHABLE("visitAssocTypeDeclRefType in EmitVisitor"); + } + void visitBasicExpressionType(BasicExpressionType* basicType, TypeEmitArg const& arg) { auto declarator = arg.declarator; @@ -3009,6 +3013,12 @@ struct EmitVisitor Emit(";\n"); } + void visitAssocTypeDecl(AssocTypeDecl * /*assocType*/, DeclEmitArg const&) + { + SLANG_UNREACHABLE("visitAssocTypeDecl in EmitVisitor"); + } + + void visitImportDecl(ImportDecl* decl, DeclEmitArg const&) { // When in "rewriter" mode, we need to emit the code of the imported -- cgit v1.2.3