You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make NavigatorIndex.Builder ignore language variants when requested
Clients might want the Navigator Index to not preemptively add an entry
for nodes that have a language variant trait. For example, a client
might not have a renderer cable of applying language variants, in this
instance it doesn't make sense to generate a navigator hierarchy for
other languages.
rdar://138183564
Copy file name to clipboardExpand all lines: Sources/SwiftDocC/Indexing/Navigator/NavigatorIndex.swift
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -473,8 +473,8 @@ extension NavigatorIndex {
473
473
A `Builder` is a utility class to build a navigator index.
474
474
475
475
The builder generates an index for content navigation, but also maps important information to filter content based on availability, symbol type, platform and some others.
476
-
477
-
- Note: The builder is not thread safe and therefore, calling `index(renderNode:)` requires external synchronization in case the process is performed on different threads.
476
+
477
+
- Note: The builder is not thread safe and therefore, calling `index(renderNode:)` requires external synchronization in case the process is performed on different threads.
478
478
*/
479
479
openclassBuilder{
480
480
@@ -613,12 +613,13 @@ extension NavigatorIndex {
613
613
614
614
/// Index a single render `RenderNode`.
615
615
/// - Parameter renderNode: The render node to be indexed.
616
-
publicfunc index(renderNode:RenderNode)throws{
616
+
/// - Parameter ignoringLanguage: Whether language variants should be ignored when indexing this render node.
0 commit comments