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
- 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.
- State
VariableIR - Representation of a state variable.
- Struct
FieldIR - StructIR
- Version ๐
Enumsยง
- Bound ๐
- Comparator
Op ๐ - 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ยง
- branch_
supports_ ๐0_ 8 - build_
comment_ ๐map - Build a map from source positions to their preceding Natspec comments.
- clean_
doc_ ๐comment - Remove comment delimiters and leading asterisks/slashes
- convert_
contract ๐ - convert_
enum ๐ - convert_
event ๐ - convert_
function ๐ - convert_
parameters ๐ - convert_
state_ ๐variable - convert_
struct ๐ - enforce_
supported_ ๐pragma - extract_
mutability ๐ - extract_
visibility ๐ - find_
preceding_ ๐doc - Find the doc comment that precedes a given source location
- format_
diagnostics ๐ - function_
name ๐ - intersects_
0_ ๐8 - next_
patch ๐ - offset_
to_ ๐line_ column - parse_
caret ๐ - parse_
hyphen_ ๐range - parse_
natspec ๐ - Parse Natspec tags from a documentation comment
- parse_
operator_ ๐version - parse_
plain_ ๐version - parse_
source - Parse Solidity source into
ContractIRvalues. - parse_
tilde ๐ - pragma_
supports_ ๐0_ 8 - save_
tag_ ๐content - split_
comparators ๐ - storage_
to_ ๐string