diff options
Diffstat (limited to 'source/slang/slang-ast-iterator.h')
| -rw-r--r-- | source/slang/slang-ast-iterator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/slang-ast-iterator.h b/source/slang/slang-ast-iterator.h index b23f7c6ca..ea3db6937 100644 --- a/source/slang/slang-ast-iterator.h +++ b/source/slang/slang-ast-iterator.h @@ -236,6 +236,19 @@ struct ASTIterator iterator->maybeDispatchCallback(expr); dispatchIfNotNull(expr->base.exp); } + void visitFuncTypeExpr(FuncTypeExpr* expr) + { + iterator->maybeDispatchCallback(expr); + for(const auto& t : expr->parameters) + dispatchIfNotNull(t.exp); + dispatchIfNotNull(expr->result.exp); + } + void visitTupleTypeExpr(TupleTypeExpr* expr) + { + iterator->maybeDispatchCallback(expr); + for(auto t : expr->members) + dispatchIfNotNull(t.exp); + } void visitPointerTypeExpr(PointerTypeExpr* expr) { iterator->maybeDispatchCallback(expr); |
