Skip to main content

Module extract

Module extract 

Source
Expand description

Shared surface for the per-language source extractors.

The token-driven Erlang scanner (backhopper-erlang) and the regex-driven Elixir scanner (backhopper-elixir) keep their own bodies, but speak this common vocabulary: the decode error, the extracted-source bag, and the visibility classifier.

Structs§

ExtractedSource
ScannedFile

Enums§

ExtractError

Functions§

classify_visibility
Resolves a module’s Visibility from its name, the config’s public and internal module lists, an out-of-band hidden hint (Erlang %% @hidden or -doc(hidden), Elixir @moduledoc false), and whether its only exports are -ifdef(TEST)-guarded. An explicit internal listing wins; a public listing overrides the hidden hint.