Expand description
Solidity frontend integration using solang-parser.
This module parses Solidity source code into a light-weight intermediate representation that can be consumed by later compiler stages.
Structs§
- ContractIR
- Representation of a Solidity contract.
- EnumIR
- ErrorIR
- Representation of a Solidity custom
errordeclaration. - EventIR
- Representation of a Solidity event.
- Event
ParameterIR - Representation of a Solidity event parameter.
- FunctionIR
- Representation of a Solidity function or constructor.
- Natspec
DocIR - Natspec documentation extracted from source comments.
- ParameterIR
- Representation of a Solidity parameter.
- Parse
Diagnostic - A single structured parser diagnostic, carrying the byte range so
standard-JSON output can emit a precise
sourceLocation(start/end) per error instead of collapsing every parse error into one opaque blob. - State
VariableIR - Representation of a state variable.
- Struct
FieldIR - StructIR
- Using
DirectiveIR - Parsed
usingdirective (using <list> for <type | *>).
Enums§
- Contract
Kind - Classification of contract kinds.
- Frontend
Error - Errors emitted by the frontend while parsing Solidity code.
- Mutability
Kind - Function mutability classification based on Solidity state mutability.
- Visibility
Kind
Functions§
- parse_
solidity_ guarded - Run
solang_parser::parse(source, 0)on a worker thread with a large bounded stack, joining failures back as ordinary parse diagnostics. - parse_
source - Parse Solidity source into
ContractIRvalues.