Skip to main content

Crate backhopper_xref_reader

Crate backhopper_xref_reader 

Source
Expand description

Erlang source to call-graph reader for backhopper-xref.

Walks .erl source through a minimal tokenizer and produces ModuleData records containing exports, imports, behaviours, callbacks, and call sites (with span-precise locations).

Re-exports§

pub use application::ApplicationAssignment;
pub use application::ProjectLayout;
pub use errors::ReadError;
pub use errors::ReadWarning;
pub use model::CallSite;
pub use model::ModuleData;
pub use model::ReadOutput;
pub use reader::SourceReader;
pub use suite_matcher::AstSuiteMatcher;

Modules§

application
Application-membership resolution.
errors
macros
-define table and macro-body expansion helpers.
model
ModuleData, CallSite, and ReadOutput aggregate types.
reader
The SourceReader orchestrator.
scanner
Byte-level scanner for Erlang source.
suite_matcher
AST-precise SuiteMatcher.

Structs§

MacroKey

Functions§

parse_define
Parses the body of a -define(...) attribute. Accepts the raw (NAME, body) form and the inner NAME, body form that handle_attribute-style callers pass after stripping the parens.

Type Aliases§

MacroTable