summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-expr.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-01 08:46:57 -0700
committerGitHub <noreply@github.com>2022-11-01 08:46:57 -0700
commitcbc1eff56057f199183bb7c17d8a360326512367 (patch)
tree487865e928cd2ceecbb509f0bfd06aa8d9584411 /source/slang/slang-ast-expr.h
parentb707a07b1de3535cb0a8ccb6fe2ed4afa4a016d1 (diff)
Make `DifferentialPair` able to nest. (#2477)
Diffstat (limited to 'source/slang/slang-ast-expr.h')
-rw-r--r--source/slang/slang-ast-expr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h
index f2a72703e..ef6a05c71 100644
--- a/source/slang/slang-ast-expr.h
+++ b/source/slang/slang-ast-expr.h
@@ -126,6 +126,12 @@ class InitializerListExpr : public Expr
List<Expr*> args;
};
+class GetArrayLengthExpr : public Expr
+{
+ SLANG_AST_CLASS(GetArrayLengthExpr)
+ Expr* arrayExpr = nullptr;
+};
+
// A base class for expressions with arguments
class ExprWithArgsBase : public Expr
{