summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-doc-ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-doc-ast.cpp')
-rw-r--r--source/slang/slang-doc-ast.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-doc-ast.cpp b/source/slang/slang-doc-ast.cpp
index 386c8e6d0..eec0aa650 100644
--- a/source/slang/slang-doc-ast.cpp
+++ b/source/slang/slang-doc-ast.cpp
@@ -80,7 +80,7 @@ static void _addDeclRec(Decl* decl, List<Decl*>& outDecls)
}
}
-SlangResult ASTMarkupUtil::extract(ModuleDecl* moduleDecl, SourceManager* sourceManager, DiagnosticSink* sink, ASTMarkup* outDoc)
+SlangResult ASTMarkupUtil::extract(ModuleDecl* moduleDecl, SourceManager* sourceManager, DiagnosticSink* sink, ASTMarkup* outDoc, bool searchOrindaryComments)
{
List<Decl*> decls;
findDecls(moduleDecl, decls);
@@ -106,6 +106,7 @@ SlangResult ASTMarkupUtil::extract(ModuleDecl* moduleDecl, SourceManager* source
}
DocMarkupExtractor extractor;
+ extractor.setSearchInOrdinaryComments(searchOrindaryComments);
List<SourceView*> views;
SLANG_RETURN_ON_FAIL(extractor.extract(inputItems.getBuffer(), declsCount, sourceManager, sink, views, outItems));