diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-06-03 17:22:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 17:22:48 -0400 |
| commit | 1b8731c809761c4e2dbec81dcee207f8a4621903 (patch) | |
| tree | b8c67d97a71df2a8ba776b6d1a39bc13138aeaf0 /source/slang/slang-ast-decl.cpp | |
| parent | 4e3e7f2a8f032c3f8fc4c530023aa80973598502 (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-ast-decl.cpp')
| -rw-r--r-- | source/slang/slang-ast-decl.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/slang/slang-ast-decl.cpp b/source/slang/slang-ast-decl.cpp new file mode 100644 index 000000000..a10411ebb --- /dev/null +++ b/source/slang/slang-ast-decl.cpp @@ -0,0 +1,21 @@ +// slang-ast-decl.cpp +#include "slang-ast-builder.h" +#include <assert.h> + +#include "slang-ast-generated-macro.h" + +namespace Slang { + +const TypeExp& TypeConstraintDecl::getSup() const +{ + SLANG_AST_NODE_CONST_VIRTUAL_CALL(TypeConstraintDecl, getSup, ()) +} + +const TypeExp& TypeConstraintDecl::_getSupOverride() const +{ + SLANG_UNEXPECTED("TypeConstraintDecl::_getSupOverride not overridden"); + //return TypeExp::empty; +} + + +} // namespace Slang |
