summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-synthesis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-synthesis.cpp')
-rw-r--r--source/slang/slang-ast-synthesis.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/slang/slang-ast-synthesis.cpp b/source/slang/slang-ast-synthesis.cpp
index c7291f526..5f7b527e2 100644
--- a/source/slang/slang-ast-synthesis.cpp
+++ b/source/slang/slang-ast-synthesis.cpp
@@ -168,6 +168,16 @@ Expr* ASTSynthesizer::emitMemberExpr(Type* type, Name* name)
return rs;
}
+Expr* ASTSynthesizer::emitMemberExpr(QualType exprType, Expr* base, DeclRef<Decl> declRef)
+{
+ auto rs = m_builder->create<MemberExpr>();
+ rs->baseExpression = base;
+ rs->declRef = declRef;
+ rs->type = exprType;
+ rs->checked = base->checked;
+ return rs;
+}
+
Expr* ASTSynthesizer::emitIndexExpr(Expr* base, Expr* index)
{
auto rs = m_builder->create<IndexExpr>();