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
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.
StateVariableIR
Representation of a state variable.
StructFieldIR
StructIR
Version ๐Ÿ”’

Enumsยง

Bound ๐Ÿ”’
ComparatorOp ๐Ÿ”’
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ยง

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 ContractIR values.
parse_tilde ๐Ÿ”’
pragma_supports_0_8 ๐Ÿ”’
save_tag_content ๐Ÿ”’
split_comparators ๐Ÿ”’
storage_to_string ๐Ÿ”’