Expand description
Direct solc --standard-json runner for fast AST generation.
The output is normalized into the same shape that forge build --json --ast
produces, so all downstream consumers (goto, hover, completions, etc.) work
unchanged.
Structs§
- SemVer
- A parsed semver version (major.minor.patch).
Enums§
- Pragma
Constraint - A version constraint from
pragma solidity.
Functions§
- build_
standard_ json_ input - Build the
--standard-jsoninput for solc. - find_
matching_ version - Find the best matching installed version for a pragma constraint.
- list_
installed_ versions - List installed solc versions (cached — use
get_installed_versions()internally). - normalize_
forge_ output - Normalize forge
build --json --astoutput into the canonical shape. - normalize_
solc_ output - Normalize raw solc
--standard-jsonoutput into the canonical shape. - parse_
pragma - Parse
pragma solidity <constraint>;from Solidity source. - resolve_
remappings - Fetch remappings by running
forge remappingsin the project root. - resolve_
solc_ binary - Resolve the path to the solc binary.
- run_
solc - Run
solc --standard-jsonand return the parsed output. - solc_
ast - Run solc for a file and return normalized output.
- solc_
build - Run solc for build diagnostics (same output, just used for error extraction).
- version_
satisfies - Check if a version satisfies a pragma constraint.