diff options
| author | Loris Cro <kappaloris@gmail.com> | 2023-04-26 18:17:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 18:17:20 +0200 |
| commit | b294bff1a86b58ca461a17e8f0a3b8e8082a308e (patch) | |
| tree | 1a9683cdbf364a9cdc12b85a3f8d36850bc62aeb /lib/std | |
| parent | b55b8e7745316a8e3acd4be8f2e3651d6225c710 (diff) | |
| download | zig-b294bff1a86b58ca461a17e8f0a3b8e8082a308e.tar.gz zig-b294bff1a86b58ca461a17e8f0a3b8e8082a308e.zip | |
Autodoc: new decl search system (#15475)
New search system is based on a Radix Tree. The Radix Tree contains a shallow list of all decl names (ie no paths), plus some suffixes, split by following the official style guide (eg "HashMapUnmanaged" also produces "MapUnmanaged" and "Unmanaged", same with snake_case and camelCase names).
Additionally, the search system uses the decl graph data to recognize hierarchical relationships between decls, allowing you to zero on a target namespace for search. As an example "fs create" will score highe all things related to the creation of files and directories inside of `std.fs`, while still showing (but with lower score) matches from `std.Bulild`.
As another example "fs windows" will prioritize windows-related results in `std.fs`, while "windows fs" will prioritize fs-related results in `std.windows`.
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions
