summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-expr.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-expr.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-expr.h')
-rw-r--r--source/slang/slang-ast-expr.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h
index 828ca035f..70390255f 100644
--- a/source/slang/slang-ast-expr.h
+++ b/source/slang/slang-ast-expr.h
@@ -212,9 +212,12 @@ class PostfixExpr: public OperatorExpr
class IndexExpr: public Expr
{
SLANG_AST_CLASS(IndexExpr)
+ Expr* baseExpression;
+ List<Expr*> indexExprs;
- Expr* baseExpression = nullptr;
- Expr* indexExpression = nullptr;
+ // The source location of `(`, `)`, and `,` that marks the start/end of the application op and
+ // each argument expr. This info is used by language server.
+ List<SourceLoc> argumentDelimeterLocs;
};
class MemberExpr: public DeclRefExpr