From 53793612e3a2f1cadc4f7cbf703bcd94b7121414 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Apr 2023 18:32:20 -0700 Subject: Embed stdlib documentation to AST. (#2851) * Embed stdlib documentation to AST. * Extract documentation for attributes. --------- Co-authored-by: Yong He --- source/slang/slang-doc-ast.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/slang/slang-doc-ast.cpp') diff --git a/source/slang/slang-doc-ast.cpp b/source/slang/slang-doc-ast.cpp index 54155f06c..4f0d310bf 100644 --- a/source/slang/slang-doc-ast.cpp +++ b/source/slang/slang-doc-ast.cpp @@ -36,6 +36,10 @@ namespace Slang { { return SearchStyle::GenericParam; } + else if (as(decl)) + { + return SearchStyle::Attribute; + } else { // If can't determine just allow before @@ -53,6 +57,8 @@ static void _addDeclRec(Decl* decl, List& outDecls) // If we don't have a loc, we have no way of locating documentation. if (decl->loc.isValid() || decl->nameAndLoc.loc.isValid()) { + if (as(decl)) + printf("dd"); outDecls.add(decl); } -- cgit v1.2.3