diff options
Diffstat (limited to 'source/slang/slang-ast-builder.cpp')
| -rw-r--r-- | source/slang/slang-ast-builder.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/source/slang/slang-ast-builder.cpp b/source/slang/slang-ast-builder.cpp index a88db3155..f7304f308 100644 --- a/source/slang/slang-ast-builder.cpp +++ b/source/slang/slang-ast-builder.cpp @@ -512,22 +512,27 @@ Type* ASTBuilder::getScalarLayoutType() // Construct the type `Out<valueType>` OutType* ASTBuilder::getOutType(Type* valueType) { - return dynamicCast<OutType>(getPtrType(valueType, "OutType")); + return dynamicCast<OutType>(getPtrType(valueType, "OutParamType")); } InOutType* ASTBuilder::getInOutType(Type* valueType) { - return dynamicCast<InOutType>(getPtrType(valueType, "InOutType")); + return dynamicCast<InOutType>(getPtrType(valueType, "InOutParamType")); } -RefType* ASTBuilder::getRefType(Type* valueType) +RefParamType* ASTBuilder::getRefParamType(Type* valueType) { - return dynamicCast<RefType>(getPtrType(valueType, "RefType")); + return dynamicCast<RefParamType>(getPtrType(valueType, "RefParamType")); } -ConstRefType* ASTBuilder::getConstRefType(Type* valueType) +ConstRefParamType* ASTBuilder::getConstRefParamType(Type* valueType) { - return dynamicCast<ConstRefType>(getPtrType(valueType, "ConstRefType")); + return dynamicCast<ConstRefParamType>(getPtrType(valueType, "ConstRefParamType")); +} + +ExplicitRefType* ASTBuilder::getExplicitRefType(Type* valueType) +{ + return dynamicCast<ExplicitRefType>(getPtrType(valueType, "ExplicitRefType")); } OptionalType* ASTBuilder::getOptionalType(Type* valueType) |
