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
letdiagnostic=Diagnostic(source: sourceFile, severity:.warning, range: codeBlock.range, identifier:"org.swift.docc.InvalidCodeBlockOption", summary:"Could not parse \(token.rawValue.singleQuoted) indices from \(value.singleQuoted). Expected an integer (e.g. 3) or an array (e.g. [1, 3, 5])")
letdiagnostic=Diagnostic(source: sourceFile, severity:.warning, range: codeBlock.range, identifier:"org.swift.docc.InvalidCodeBlockOption", summary:"Invalid \(token.rawValue.singleQuoted) index\(invalid.count ==1?"":"es") in \(value.singleQuoted) for a code block with \(lineCount) line\(lineCount ==1?"":"s"). Valid range is 1...\(lineCount).")
78
+
letsolutions:[Solution]={
79
+
if invalid.contains(where:{$0 == lineCount +1}){
80
+
return[Solution(
81
+
summary:"If you intended the last line, change '\(lineCount +1)' to \(lineCount).",
@@ -364,14 +364,14 @@ public class NavigatorIndex {
364
364
Read a tree on disk from a given path.
365
365
The read is atomically performed, which means it reads all the content of the file from the disk and process the tree from loaded data.
366
366
The queue is used to load the data for a given timeout period, after that, the queue is used to schedule another read after a given delay.
367
-
This approach ensures that the used queue doesn't stall while loading the content from the disk keeping the used queue responsive.
367
+
This approach ensures that the used queue doesn't stall while loading the content from the disk keeping the used queue responsive.
368
368
369
369
- Parameters:
370
-
- timeout: The amount of time we can load a batch of items from data, once the timeout time pass,
370
+
- timeout: The duration for which we can load a batch of items from data. Once the timeout duration passes,
371
371
the reading process will reschedule asynchronously using the given queue.
372
-
- delay: The delay to wait before schedule the next read. Default: 0.01 seconds.
372
+
- delay: The duration to wait for before scheduling the next read. Default: 0.01 seconds.
373
373
- queue: The queue to use.
374
-
- broadcast: The callback to update get updates of the current process.
374
+
- broadcast: The callback to receive updates on the status of the current process.
375
375
376
376
- Note: Do not access the navigator tree root node or the map from identifier to node from a different thread than the one the queue is using while the read is performed,
377
377
this may cause data inconsistencies. For that please use the broadcast callback that notifies which items have been loaded.
@@ -455,6 +455,17 @@ extension NavigatorIndex {
455
455
self.fragment = fragment
456
456
self.languageIdentifier = languageIdentifier
457
457
}
458
+
459
+
/// Compare an identifier with another one, ignoring the identifier language.
460
+
///
461
+
/// Used when curating cross-language references in multi-language frameworks.
462
+
///
463
+
/// - Parameter other: The other identifier to compare with.
0 commit comments