PropWise.Parser (PropWise v0.4.0)

View Source

Parses Elixir source files and extracts function definitions with their ASTs using Metastatic.

Summary

Functions

Parses a single Elixir file and extracts all function definitions.

Parses Elixir files in the given path or file list. Returns a list of PropWise.FunctionInfo structs.

Functions

parse_file(file_path)

@spec parse_file(String.t()) :: [PropWise.FunctionInfo.t()]

Parses a single Elixir file and extracts all function definitions.

parse_project(path, opts \\ [])

@spec parse_project(
  String.t(),
  keyword()
) :: [PropWise.FunctionInfo.t()]

Parses Elixir files in the given path or file list. Returns a list of PropWise.FunctionInfo structs.

Accepts optional analyze_paths or files options.