summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-print.cpp')
-rw-r--r--source/slang/slang-ast-print.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/slang-ast-print.cpp b/source/slang/slang-ast-print.cpp
index 1f7478662..299e6a859 100644
--- a/source/slang/slang-ast-print.cpp
+++ b/source/slang/slang-ast-print.cpp
@@ -610,6 +610,15 @@ void ASTPrinter::addExpr(Expr* expr)
}
sb << ")";
}
+ else if (const auto addressOfExpr = as<AddressOfExpr>(expr))
+ {
+ sb << "__getAddress(";
+ if (addressOfExpr->arg)
+ {
+ addExpr(addressOfExpr->arg);
+ }
+ sb << ")";
+ }
else if (const auto makeOptionalExpr = as<MakeOptionalExpr>(expr))
{
if (makeOptionalExpr->value)