Expand description
Error type returned from the library’s top-level entry points.
big_code_analysis::FromPathError, the richer error of the
file-backed Ast::from_path, lives in the root crate’s
from_path_error module; this one is the parse-layer error every
dispatch entry point returns.
Prior to this module, every entry point returned Option<…> and
collapsed parse failure, empty input, and disabled-language builds
into a single None. MetricsError distinguishes those cases so
library consumers can react appropriately (e.g. report a disabled
language distinctly from an empty parse).
New variants may be added in future minor versions, so consumers
must include a _ arm when matching exhaustively — this is enforced
by the #[non_exhaustive] attribute on the enum.
Enums§
- Metrics
Error - Error returned by the library’s metric-computation entry points.