diff options
| author | Yong He <yonghe@outlook.com> | 2025-02-13 13:09:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 13:09:11 -0800 |
| commit | adde2626720f23a5fd7151f6fb9109db14fc9263 (patch) | |
| tree | 9ea4d2f0bfc9549c2e10b315b9d456264e66e649 /source/slang/slang-lookup.cpp | |
| parent | 1ea2ab1b638b0e6d2c385b2b06157e6109417e6b (diff) | |
Fix modifier parsing. (#6347)
* Fix modifier parsing.
* Fix.
* Fix.
* Fix.
Diffstat (limited to 'source/slang/slang-lookup.cpp')
| -rw-r--r-- | source/slang/slang-lookup.cpp | 6 |
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) |
