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_
batch_ standard_ json_ input - Build a
--standard-jsoninput that compiles all given source files at once. - build_
batch_ standard_ json_ input_ with_ cache - Build a batch standard-json input for solc.
- build_
parse_ only_ json_ input - Build a parse-only standard-json input (
stopAfter: "parsing"). - build_
standard_ json_ input - Build the
--standard-jsoninput for solc. - discover_
compilation_ closure - Discover the true compilation closure by tracing imports from the
project’s own source files (
src/,test/,script/, and any other non-lib top-level directories). - discover_
source_ files - Discover all Solidity source files under the project root.
- discover_
source_ files_ with_ libs - Discover source files including library directories.
- 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).
- solc_
project_ index - Run a project-wide solc compilation and return normalized output.
- solc_
project_ index_ scoped - Run a scoped project-index compile over a selected file list.
- version_
satisfies - Check if a version satisfies a pragma constraint.