Expand description
Solidity source file parser — parses source code into structured representations for deeper vulnerability analysis (CEI, access control, etc.).
Structs§
- Contract
- A contract, interface, or library definition.
- Error
Def - A custom error definition.
- Event
Def - An event definition at the contract level.
- Function
Def - A full function definition with parsed body.
- Modifier
Def - A modifier definition.
- Param
- A parameter in a function or event.
- Source
File - A parsed Solidity source file.
- State
Variable - A single state variable definition.
- Statement
- A statement with its content, line number, and kind.
- Struct
Def - A struct definition inside a contract.
- Using
ForDef - A using-for directive.
Enums§
- Call
Target - Metadata about a function call target (which contract/interface is being called).
- Contract
Kind - The kind of top-level type.
- Mutability
- State mutability of a function.
- Statement
Kind - Classification of a single logical statement within a function body.
- Visibility
- Visibility of a function or state variable.
Functions§
- extract_
call_ target - Extract the call target from a statement text.
- parse_
source - Parse a full Solidity source string into a structured representation.