summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-iterator.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-05 00:38:45 -0700
committerGitHub <noreply@github.com>2022-09-05 00:38:45 -0700
commitea0845285b0307d153a91d6f0a5010fc2d7219ed (patch)
treebf2d8f7258b2681deddf3391c551c5ff2b1a7918 /source/slang/slang-ast-iterator.h
parent2a869c105dcc23ede8f5e6e16b08261f45aa5aad (diff)
Multi parameter `__subscript` (#2392)
* Multi parameter `__subscript` * Fix. * Fix bugs. * Fix. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-iterator.h')
-rw-r--r--source/slang/slang-ast-iterator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-ast-iterator.h b/source/slang/slang-ast-iterator.h
index 233ce9a17..4d37b68e7 100644
--- a/source/slang/slang-ast-iterator.h
+++ b/source/slang/slang-ast-iterator.h
@@ -67,7 +67,8 @@ struct ASTIterator
{
iterator->maybeDispatchCallback(subscriptExpr);
dispatchIfNotNull(subscriptExpr->baseExpression);
- dispatchIfNotNull(subscriptExpr->indexExpression);
+ for (auto arg : subscriptExpr->indexExprs)
+ dispatchIfNotNull(arg);
}
void visitParenExpr(ParenExpr* expr)