From 1b8731c809761c4e2dbec81dcee207f8a4621903 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 3 Jun 2020 17:22:48 -0400 Subject: Devirtualize AST types (#1368) * Make getSup work with more general non-virtual 'virtual' mechanism. * WIP: Non virtual AST types. * Project change. * Type doesn't implement equalsImpl * Fix macro invocation Make Overridden functions public to make simply accessible by base types. * Use SLANG_UNEXPECTED. * GetScalarType -> getScalarType Use SLANG_UNEXPECTED instead on ASSERT in NamedExpressionType and TypeType --- source/slang/slang-syntax.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/slang/slang-syntax.h') diff --git a/source/slang/slang-syntax.h b/source/slang/slang-syntax.h index dff24435d..53ec57daa 100644 --- a/source/slang/slang-syntax.h +++ b/source/slang/slang-syntax.h @@ -210,6 +210,17 @@ namespace Slang } } + // + + RefPtr findThisTypeSubstitution( + Substitutions* substs, + InterfaceDecl* interfaceDecl); + + RequirementWitness tryLookUpRequirementWitness( + ASTBuilder* astBuilder, + SubtypeWitness* subtypeWitness, + Decl* requirementKey); + // TODO: where should this live? SubstitutionSet createDefaultSubstitutions( ASTBuilder* astBuilder, -- cgit v1.2.3