summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-expr.h')
-rw-r--r--source/slang/slang-ast-expr.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h
index 0a875fb50..da213e8d4 100644
--- a/source/slang/slang-ast-expr.h
+++ b/source/slang/slang-ast-expr.h
@@ -545,6 +545,22 @@ class PointerTypeExpr : public Expr
TypeExp base;
};
+ /// A type expression that represents a function type, e.g. (bool, int) -> float
+class FuncTypeExpr : public Expr
+{
+ SLANG_AST_CLASS(FuncTypeExpr);
+
+ List<TypeExp> parameters;
+ TypeExp result;
+};
+
+class TupleTypeExpr : public Expr
+{
+ SLANG_AST_CLASS(TupleTypeExpr);
+
+ List<TypeExp> members;
+};
+
/// An expression that applies a generic to arguments for some,
/// but not all, of its explicit parameters.
///