diff options
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index 88c23f314..4881f301e 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -296,6 +296,12 @@ void Type::accept(IValVisitor* visitor, void* extra) return constExprRate; } + Type* Session::getStringType() + { + auto stringTypeDecl = findMagicDecl(this, "StringType"); + return DeclRefType::Create(this, makeDeclRef<Decl>(stringTypeDecl)); + } + RefPtr<RateQualifiedType> Session::getRateQualifiedType( Type* rate, Type* valueType) |
