Crate solscript_typeck

Crate solscript_typeck 

Source
Expand description

SolScript Type Checker

This crate provides type checking and semantic analysis for SolScript programs.

Structs§

ContractDef
Contract type definition
EnumDef
Enum type definition (Solidity-style: simple variants only)
ErrorDef
Error type definition
ErrorParam
Error parameter
EventDef
Event type definition
EventParam
Event parameter
FunctionType
A function type
InterfaceDef
Interface type definition
ModifierType
Modifier type definition
NamedType
A named type (struct, enum, contract, interface)
Scope
A scope in the symbol table
StructDef
Struct type definition
SymbolTable
The symbol table managing nested scopes
TypeChecker
The type checker
TypeId
A unique identifier for a type
TypeVar
A type variable for inference

Enums§

PrimitiveType
Primitive types (Solidity-style)
ScopeKind
The kind of scope
Symbol
A symbol in the symbol table
Type
The core type representation
TypeDef
Type definitions (for structs, enums, etc.)
TypeError
A type checking error

Functions§

typecheck
Type check a SolScript program