From 7be108c379ccc7da3f46b30a2b5917104155d52b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 26 Apr 2023 22:40:06 -0700 Subject: Intellisense: show info on decl kind and differentiability. (#2847) --- source/slang/slang-ast-print.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-ast-print.cpp') diff --git a/source/slang/slang-ast-print.cpp b/source/slang/slang-ast-print.cpp index b38b58385..23430cd13 100644 --- a/source/slang/slang-ast-print.cpp +++ b/source/slang/slang-ast-print.cpp @@ -168,7 +168,9 @@ void ASTPrinter::_addDeclPathRec(const DeclRef& declRef, Index depth) // If the parent declaration is a generic, then we need to print out its // signature - if (parentGenericDeclRef) + if (parentGenericDeclRef && + !declRef.as() && + !declRef.as()) { auto genSubst = as(declRef.substitutions.substitutions); if (genSubst) -- cgit v1.2.3