summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ast-print.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-04-26 22:40:06 -0700
committerGitHub <noreply@github.com>2023-04-26 22:40:06 -0700
commit7be108c379ccc7da3f46b30a2b5917104155d52b (patch)
treeb38b6d5483ba63b18d38c282c06dd55ff9c188ea /source/slang/slang-ast-print.cpp
parent3acbe8145c60f4d1e7a180b4602a94269a489df5 (diff)
Intellisense: show info on decl kind and differentiability. (#2847)
Diffstat (limited to 'source/slang/slang-ast-print.cpp')
-rw-r--r--source/slang/slang-ast-print.cpp4
1 files changed, 3 insertions, 1 deletions
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<Decl>& declRef, Index depth)
// If the parent declaration is a generic, then we need to print out its
// signature
- if (parentGenericDeclRef)
+ if (parentGenericDeclRef &&
+ !declRef.as<GenericValueParamDecl>() &&
+ !declRef.as<GenericTypeParamDecl>())
{
auto genSubst = as<GenericSubstitution>(declRef.substitutions.substitutions);
if (genSubst)