diff options
Diffstat (limited to 'source/slang/slang-ast-iterator.h')
| -rw-r--r-- | source/slang/slang-ast-iterator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-ast-iterator.h b/source/slang/slang-ast-iterator.h index 047c33d1a..18a46b303 100644 --- a/source/slang/slang-ast-iterator.h +++ b/source/slang/slang-ast-iterator.h @@ -76,6 +76,13 @@ struct ASTIterator dispatchIfNotNull(expr->base); } + void visitTupleExpr(TupleExpr* expr) + { + iterator->maybeDispatchCallback(expr); + for (auto element : expr->elements) + dispatchIfNotNull(element); + } + void visitAssignExpr(AssignExpr* expr) { iterator->maybeDispatchCallback(expr); |
