summaryrefslogtreecommitdiff
path: root/source/slang/slang-syntax.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-06-03 17:22:48 -0400
committerGitHub <noreply@github.com>2020-06-03 17:22:48 -0400
commit1b8731c809761c4e2dbec81dcee207f8a4621903 (patch)
treeb8c67d97a71df2a8ba776b6d1a39bc13138aeaf0 /source/slang/slang-syntax.h
parent4e3e7f2a8f032c3f8fc4c530023aa80973598502 (diff)
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
Diffstat (limited to 'source/slang/slang-syntax.h')
-rw-r--r--source/slang/slang-syntax.h11
1 files changed, 11 insertions, 0 deletions
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<ThisTypeSubstitution> findThisTypeSubstitution(
+ Substitutions* substs,
+ InterfaceDecl* interfaceDecl);
+
+ RequirementWitness tryLookUpRequirementWitness(
+ ASTBuilder* astBuilder,
+ SubtypeWitness* subtypeWitness,
+ Decl* requirementKey);
+
// TODO: where should this live?
SubstitutionSet createDefaultSubstitutions(
ASTBuilder* astBuilder,