Expand description
Extract unique accounts, currencies, and payees from directives.
These functions are used by both the WASM editor and LSP for completions.
The currency and account walks delegate to crate::visit for
exhaustive position coverage; that module is the single
enumeration point — any new directive variant or new currency/
account-bearing position is added there and every consumer
(extract, hover, completion, …) benefits.
Constants§
- DEFAULT_
CURRENCIES - Common default currencies included in completions.
Functions§
- extract_
accounts - Extract unique account names from directives (sorted, deduplicated).
- extract_
accounts_ iter - Extract unique account names from an iterator of directive references.
- extract_
currencies - Extract unique currencies from directives (sorted, deduplicated).
- extract_
currencies_ iter - Extract unique currencies from an iterator of directive references.
- extract_
links - Extract unique links from directives (sorted, deduplicated). Link
text is returned without the
^sigil. - extract_
links_ iter - Extract unique links from an iterator of directive references.
- extract_
payees - Extract unique payees from transactions (sorted, deduplicated).
- extract_
payees_ iter - Extract unique payees from an iterator of directive references.
- extract_
tags - Extract unique tags from directives (sorted, deduplicated). Tag
text is returned without the
#sigil. - extract_
tags_ iter - Extract unique tags from an iterator of directive references.