summaryrefslogtreecommitdiff
path: root/source/slang/slang-lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-lookup.cpp')
-rw-r--r--source/slang/slang-lookup.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/slang-lookup.cpp b/source/slang/slang-lookup.cpp
index 9b9034c63..a2284eaa8 100644
--- a/source/slang/slang-lookup.cpp
+++ b/source/slang/slang-lookup.cpp
@@ -71,7 +71,11 @@ bool DeclPassesLookupMask(Decl* decl, LookupMask mask)
{
return (int(mask) & int(LookupMask::Attribute)) != 0;
}
-
+ // syntax declaration
+ else if (const auto syntaxDecl = as<SyntaxDecl>(decl))
+ {
+ return (int(mask) & int(LookupMask::SyntaxDecl)) != 0;
+ }
// default behavior is to assume a value declaration
// (no overloading allowed)