summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-21 15:36:02 -0400
committerGitHub <noreply@github.com>2020-05-21 15:36:02 -0400
commitdaf53bb2708982a2bcc6d6cc08fe88790ccf0bc2 (patch)
treed72a1f5a820db75072cc1d6055a0f35cf6feaccd /source/slang/slang-syntax.cpp
parentd90ae365210cdecdad7f66a7b2e3993df2cbb7d4 (diff)
Non virtual accept implementation on AST types (#1351)
* First pass impl of making accept on AST node types non virtual. * A single switch for ITypeVistor on Val type. * Use ORIGIN to choose ITypeVisitor dispatch. * Don't use ORIGIN - we don't need special handling for ITypeVisitor on Val derived types.
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index cb75622bc..486466718 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -9,11 +9,6 @@
namespace Slang
{
-#define SLANG_CLASS_ACCEPT_IMPL(NAME, SUPER, ORIGIN, LAST, MARKER, TYPE, param) \
- void NAME::accept(NAME::Visitor* visitor, void* extra) { visitor->dispatch_##NAME(this, extra); }
-
-SLANG_ALL_ASTNode_NodeBase(SLANG_CLASS_ONLY, SLANG_CLASS_ACCEPT_IMPL)
-
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!! DiagnosticSink impls !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void printDiagnosticArg(StringBuilder& sb, Decl* decl)
@@ -209,13 +204,6 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
return count;
}
- // Type
-
- void Type::accept(IValVisitor* visitor, void* extra)
- {
- accept((ITypeVisitor*)visitor, extra);
- }
-
// TypeExp
bool TypeExp::Equals(Type* other)