Skip to content

Commit 52cf515

Browse files
[SymbolGraph] don't filter out all implicit decls
1 parent 377ca35 commit 52cf515

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/SymbolGraphGen/SymbolGraph.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,10 +655,6 @@ bool SymbolGraph::canIncludeDeclAsNode(const Decl *D) const {
655655
return false;
656656
}
657657

658-
if (D->isImplicit()) {
659-
return false;
660-
}
661-
662658
if (!isa<ValueDecl>(D)) {
663659
return false;
664660
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-build-swift %s -module-name Implicit -emit-module -emit-module-path %t/
3+
// RUN: %target-swift-symbolgraph-extract -module-name Implicit -I %t -pretty-print -output-dir %t -minimum-access-level internal
4+
// RUN: %FileCheck %s --input-file %t/Implicit.symbols.json
5+
6+
public class SomeClass {}
7+
8+
// CHECK: "precise": "s:8Implicit9SomeClassCACycfc"

0 commit comments

Comments
 (0)