@@ -2537,18 +2537,25 @@ ${item.displayPath}<span class="${type}">${name}</span>\
2537
2537
let crateSize = 0 ;
2538
2538
2539
2539
/**
2540
- * The raw search data for a given crate. `n`, `t`, `d`, and `q`, `i`, and `f`
2541
- * are arrays with the same length. n[i] contains the name of an item.
2542
- * t[i] contains the type of that item (as a string of characters that represent an
2543
- * offset in `itemTypes`). d[i] contains the description of that item.
2540
+ * The raw search data for a given crate. `n`, `t`, `d`, `i`, and `f`
2541
+ * are arrays with the same length. `q`, `a`, and `c` use a sparse
2542
+ * representation for compactness.
2544
2543
*
2545
- * q[i] contains the full path of the item, or an empty string indicating
2546
- * "same as q[i-1]".
2544
+ * `n[i]` contains the name of an item.
2547
2545
*
2548
- * i[i] contains an item's parent, usually a module. For compactness,
2546
+ * `t[i]` contains the type of that item
2547
+ * (as a string of characters that represent an offset in `itemTypes`).
2548
+ *
2549
+ * `d[i]` contains the description of that item.
2550
+ *
2551
+ * `q` contains the full paths of the items. For compactness, it is a set of
2552
+ * (index, path) pairs used to create a map. If a given index `i` is
2553
+ * not present, this indicates "same as the last index present".
2554
+ *
2555
+ * `i[i]` contains an item's parent, usually a module. For compactness,
2549
2556
* it is a set of indexes into the `p` array.
2550
2557
*
2551
- * f[i] contains function signatures, or `0` if the item isn't a function.
2558
+ * ` f[i]` contains function signatures, or `0` if the item isn't a function.
2552
2559
* Functions are themselves encoded as arrays. The first item is a list of
2553
2560
* types representing the function's inputs, and the second list item is a list
2554
2561
* of types representing the function's output. Tuples are flattened.
@@ -2562,6 +2569,8 @@ ${item.displayPath}<span class="${type}">${name}</span>\
2562
2569
*
2563
2570
* `p` is a list of path/type pairs. It is used for parents and function parameters.
2564
2571
*
2572
+ * `c` is an array of item indices that are deprecated.
2573
+ *
2565
2574
* @type {{
2566
2575
* doc: string,
2567
2576
* a: Object,
0 commit comments