summaryrefslogtreecommitdiffstats
path: root/source/compiler-core
diff options
context:
space:
mode:
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();