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
@@ -477,8 +477,8 @@ extension NavigatorIndex {
477
477
A `Builder` is a utility class to build a navigator index.
478
478
479
479
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.
480
-
481
-
- Note: The builder is not thread safe and therefore, calling `index(renderNode:)` requires external synchronization in case the process is performed on different threads.
480
+
481
+
- Note: The builder is not thread safe and therefore, calling `index(renderNode:)` requires external synchronization in case the process is performed on different threads.
482
482
*/
483
483
openclassBuilder{
484
484
@@ -617,12 +617,13 @@ extension NavigatorIndex {
617
617
618
618
/// Index a single render `RenderNode`.
619
619
/// - Parameter renderNode: The render node to be indexed.
620
-
publicfunc index(renderNode:RenderNode)throws{
620
+
/// - Parameter ignoringLanguage: Whether language variants should be ignored when indexing this render node.
0 commit comments