summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index 47427b130..6587e18c3 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -14,6 +14,7 @@ namespace Slang
class Substitutions;
class SyntaxVisitor;
class FunctionSyntaxNode;
+ class Layout;
struct IExprVisitor;
struct IDeclVisitor;
@@ -347,9 +348,15 @@ namespace Slang
{
return DeclRef<ContainerDecl>::unsafeInit(DeclRefBase::GetParent());
}
-
};
+
+ template<typename T>
+ inline DeclRef<T> makeDeclRef(T* decl)
+ {
+ return DeclRef<T>(decl, nullptr);
+ }
+
template<typename T>
struct FilteredMemberList
{