Skip to content

Commit d280201

Browse files
committed
show macros in the typetree and search
1 parent 7889a15 commit d280201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/UnidocAnalysis/Volume (ext).swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ extension Volume
5050
case .decl(let master):
5151
switch master.phylum
5252
{
53-
case .actor, .class, .struct, .enum, .protocol:
53+
case .actor, .class, .struct, .enum, .protocol, .macro(.attached):
5454
types[master.culture, master.id] = .init(
5555
shoot: master.shoot,
5656
scope: master.scope.last)
5757

58-
case .func(nil), .var(nil):
58+
case .func(nil), .var(nil), .macro(.freestanding):
5959
// Global procedures show up in search, but not in the type tree.
6060
procs[master.culture, default: []].append(master.shoot)
6161

0 commit comments

Comments
 (0)