From 2c4f9810327d58023e9ec44f579cd78adf56317b Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 1 Apr 2024 15:56:02 -0700 Subject: Allow bit operators on enum types. (#3862) * Allow bit operators on enum types. * Fix. --- source/compiler-core/slang-doc-extractor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/compiler-core') 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(); -- cgit v1.2.3