gleedoc/scan

Values

pub fn module_imports(
  file_path: String,
  source: String,
) -> Result(List(String), snag.Snag)

Scan a Gleam source file and return its top-level import statements reconstructed as import strings (e.g. "import gleam/order").

pub fn public_names(
  file_path: String,
  source: String,
) -> Result(List(String), snag.Snag)

Scan a Gleam source file and extract all public definition names.

Search Document