Skip to content

Commit 9a5b0f6

Browse files
committed
namespace reform
1 parent f1be854 commit 9a5b0f6

30 files changed

+176
-163
lines changed

Sources/UnidocDB/Packages/UnidocDatabase.Snapshots.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extension UnidocDatabase.Snapshots
8080
{
8181
func load(for snapshot:Unidoc.Snapshot,
8282
pins:[Unidoc.Edition],
83-
with session:Mongo.Session) async throws -> DynamicLinker
83+
with session:Mongo.Session) async throws -> Unidoc.Linker
8484
{
8585
var dependencies:[Unidoc.Snapshot] = try await self.load(pins, with: session)
8686

Sources/UnidocDB/UnidocDatabase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ extension UnidocDatabase
499499
with session:Mongo.Session) async throws -> Unidoc.Volume
500500
{
501501
let pins:[Unidoc.Edition] = try await self.pin(&snapshot, with: session)
502-
var linker:DynamicLinker = try await self.snapshots.load(for: snapshot,
502+
var linker:Unidoc.Linker = try await self.snapshots.load(for: snapshot,
503503
pins: pins,
504504
with: session)
505505

506506
let dependencies:[Unidoc.VolumeMetadata.Dependency] = linker.dependencies()
507-
let mesh:DynamicLinker.Mesh = linker.link()
507+
let mesh:Unidoc.Linker.Mesh = linker.link()
508508

509509
linker.status().emit(colors: .enabled)
510510

Sources/UnidocLinker/Snapshots/DynamicLinker.SortPriority.Constructor.swift renamed to Sources/UnidocLinker/Curation/Unidoc.Linker.SortPriority.Constructor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Sources
22

3-
extension DynamicLinker.SortPriority
3+
extension Unidoc.Linker.SortPriority
44
{
55
enum Constructor:Equatable, Comparable
66
{

Sources/UnidocLinker/Snapshots/DynamicLinker.SortPriority.Member.swift renamed to Sources/UnidocLinker/Curation/Unidoc.Linker.SortPriority.Member.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extension DynamicLinker.SortPriority
1+
extension Unidoc.Linker.SortPriority
22
{
33
enum Member:Equatable, Comparable
44
{

Sources/UnidocLinker/Snapshots/DynamicLinker.SortPriority.Phylum.swift renamed to Sources/UnidocLinker/Curation/Unidoc.Linker.SortPriority.Phylum.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Sources
33
import Symbols
44

5-
extension DynamicLinker.SortPriority
5+
extension Unidoc.Linker.SortPriority
66
{
77
enum Phylum:Equatable, Comparable
88
{
@@ -26,7 +26,7 @@ extension DynamicLinker.SortPriority
2626
case macro
2727
}
2828
}
29-
extension DynamicLinker.SortPriority.Phylum
29+
extension Unidoc.Linker.SortPriority.Phylum
3030
{
3131
init(_ phylum:Phylum.Decl, position:SourcePosition? = nil)
3232
{

Sources/UnidocLinker/Snapshots/DynamicLinker.SortPriority.swift renamed to Sources/UnidocLinker/Curation/Unidoc.Linker.SortPriority.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extension DynamicLinker
1+
extension Unidoc.Linker
22
{
33
enum SortPriority:Equatable, Comparable
44
{

Sources/UnidocLinker/Linker/DynamicLinker.TreeMapper.swift renamed to Sources/UnidocLinker/Curation/Unidoc.Linker.TreeMapper.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Symbols
55
import Unidoc
66
import UnidocRecords
77

8-
extension DynamicLinker
8+
extension Unidoc.Linker
99
{
1010
struct TreeMapper:~Copyable
1111
{
@@ -35,7 +35,7 @@ extension DynamicLinker
3535
}
3636
}
3737
}
38-
extension DynamicLinker.TreeMapper
38+
extension Unidoc.Linker.TreeMapper
3939
{
4040
mutating
4141
func add(_ vertex:Unidoc.Vertex.Article)
@@ -63,14 +63,14 @@ extension DynamicLinker.TreeMapper
6363
}
6464
}
6565
}
66-
extension DynamicLinker.TreeMapper
66+
extension Unidoc.Linker.TreeMapper
6767
{
6868
mutating
6969
func register(foreign:Unidoc.Scalar,
70-
with context:borrowing DynamicLinker) -> Unidoc.Vertex.Foreign
70+
with context:borrowing Unidoc.Linker) -> Unidoc.Vertex.Foreign
7171
{
7272
guard
73-
let snapshot:DynamicLinker.Snapshot = context[foreign.package]
73+
let snapshot:Unidoc.Linker.Graph = context[foreign.package]
7474
else
7575
{
7676
fatalError("scalar \(foreign) is not from a package in this context!")
@@ -106,7 +106,7 @@ extension DynamicLinker.TreeMapper
106106
return vertex
107107
}
108108
}
109-
extension DynamicLinker.TreeMapper
109+
extension Unidoc.Linker.TreeMapper
110110
{
111111
mutating
112112
func update(with group:Unidoc.Group.Extension)
@@ -122,7 +122,7 @@ extension DynamicLinker.TreeMapper
122122
}
123123
}
124124
}
125-
extension DynamicLinker.TreeMapper
125+
extension Unidoc.Linker.TreeMapper
126126
{
127127
consuming
128128
func build(cultures:[Unidoc.Vertex.Culture]) -> (trees:[Unidoc.TypeTree], index:JSON)
@@ -137,7 +137,7 @@ extension DynamicLinker.TreeMapper
137137

138138
let json:JSON = .array
139139
{
140-
for (id, members):(Unidoc.Scalar, DynamicLinker.TreeMembers) in self.trees.sorted(
140+
for (id, members):(Unidoc.Scalar, Unidoc.Linker.TreeMembers) in self.trees.sorted(
141141
by: { $0.key < $1.key })
142142
{
143143
guard

Sources/UnidocLinker/Linker/DynamicLinker.TreeMembers.swift renamed to Sources/UnidocLinker/Curation/Unidoc.Linker.TreeMembers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UnidocRecords
22

3-
extension DynamicLinker
3+
extension Unidoc.Linker
44
{
55
struct TreeMembers
66
{
@@ -19,7 +19,7 @@ extension DynamicLinker
1919
}
2020
}
2121
}
22-
extension DynamicLinker.TreeMembers:ExpressibleByArrayLiteral
22+
extension Unidoc.Linker.TreeMembers:ExpressibleByArrayLiteral
2323
{
2424
init(arrayLiteral:Never...)
2525
{

Sources/UnidocLinker/Modules/SymbolGraph.ModuleContext.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ extension SymbolGraph.ModuleContext
6969
extension SymbolGraph.ModuleContext
7070
{
7171
mutating
72-
func add(snapshot:DynamicLinker.Snapshot,
73-
context:borrowing DynamicLinker,
72+
func add(snapshot:Unidoc.Linker.Graph,
73+
context:borrowing Unidoc.Linker,
7474
filter:Set<Int>?)
7575
{
7676
for (c, culture):(Int, SymbolGraph.Culture) in zip(
@@ -100,8 +100,8 @@ extension SymbolGraph.ModuleContext
100100
}
101101
private mutating
102102
func add(namespace:SymbolGraph.Namespace,
103-
snapshot:DynamicLinker.Snapshot,
104-
context:borrowing DynamicLinker,
103+
snapshot:Unidoc.Linker.Graph,
104+
context:borrowing Unidoc.Linker,
105105
filter:Set<Int>?)
106106
{
107107
let qualifier:Symbol.Module = snapshot.namespaces[namespace.index]
@@ -147,8 +147,8 @@ extension SymbolGraph.ModuleContext
147147
symbol:Symbol.Decl,
148148
path:UnqualifiedPath
149149
),
150-
snapshot:DynamicLinker.Snapshot,
151-
context:borrowing DynamicLinker,
150+
snapshot:Unidoc.Linker.Graph,
151+
context:borrowing Unidoc.Linker,
152152
filter:Set<Int>?)
153153
{
154154
for `extension`:SymbolGraph.Extension in extensions where

0 commit comments

Comments
 (0)