summaryrefslogtreecommitdiffstats
path: root/source/compiler-core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-01 15:56:02 -0700
committerGitHub <noreply@github.com>2024-04-01 15:56:02 -0700
commit2c4f9810327d58023e9ec44f579cd78adf56317b (patch)
treeb5498a74bd7d01fd2e4c321a0d2e551d5f024d6d /source/compiler-core
parent65ac9f3a9ddcb8bcfc099ffb29beaa9a92ba1f53 (diff)
Allow bit operators on enum types. (#3862)
* Allow bit operators on enum types. * Fix.
Diffstat (limited to 'source/compiler-core')
-rw-r--r--source/compiler-core/slang-doc-extractor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/compiler-core/slang-doc-extractor.cpp b/source/compiler-core/slang-doc-extractor.cpp
index ffbfc9904..9a625f3e0 100644
--- a/source/compiler-core/slang-doc-extractor.cpp
+++ b/source/compiler-core/slang-doc-extractor.cpp
@@ -766,7 +766,10 @@ SlangResult DocMarkupExtractor::extract(const SearchItemInput* inputs, Index inp
// Find the new view
sourceView = sourceManager->findSourceView(loc);
if (!sourceView)
- return SLANG_FAIL;
+ {
+ entry.searchStyle = SearchStyle::None;
+ continue;
+ }
// We want only one view per SourceFile
SourceFile* sourceFile = sourceView->getSourceFile();