We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b7ac0 commit 0d5636cCopy full SHA for 0d5636c
source/slang/slang-ast-decl-ref.cpp
@@ -336,8 +336,10 @@ void DeclRefBase::toText(StringBuilder& out)
336
List<Decl*> decls;
337
for (auto dd = getDecl(); dd; dd = dd->parentDecl)
338
{
339
- // Skip the top-level decl.
340
- if (as<ModuleDecl>(dd))
+ // Skip the module, file & include decls since their names are
+ // considered "transparent"
341
+ //
342
+ if (as<ModuleDecl>(dd) || as<FileDecl>(dd) || as<IncludeDecl>(dd))
343
continue;
344
345
// Skip base decls in generic containers. We will handle them when we handle the generic
0 commit comments