Skip to main content

Module extract

Module extract 

Source
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.