Skip to main content

Module frontend

Module frontend 

Source
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 error declaration.
EventIR
Representation of a Solidity event.
EventParameterIR
Representation of a Solidity event parameter.
FunctionIR
Representation of a Solidity function or constructor.
NatspecDocIR
Natspec documentation extracted from source comments.
ParameterIR
Representation of a Solidity parameter.
ParseDiagnostic
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.
StateVariableIR
Representation of a state variable.
StructFieldIR
StructIR
UsingDirectiveIR
Parsed using directive (using <list> for <type | *>).

Enums§

ContractKind
Classification of contract kinds.
FrontendError
Errors emitted by the frontend while parsing Solidity code.
MutabilityKind
Function mutability classification based on Solidity state mutability.
VisibilityKind

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 ContractIR values.