alloy_sol_macro_expander::expand

Struct ExpCtxt

Source
pub struct ExpCtxt<'ast> { /* private fields */ }
Expand description

The expansion context.

Trait Implementations§

Source§

impl<'ast> Debug for ExpCtxt<'ast>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'ast> Visit<'ast> for ExpCtxt<'ast>

Source§

fn visit_item(&mut self, item: &'ast Item)

Source§

fn visit_item_function(&mut self, function: &'ast ItemFunction)

Source§

fn visit_item_event(&mut self, event: &'ast ItemEvent)

Source§

fn visit_item_error(&mut self, error: &'ast ItemError)

Source§

fn visit_block(&mut self, block: &'ast Block)

Source§

fn visit_stmt(&mut self, stmt: &'ast Stmt)

Source§

fn visit_stmt_asm(&mut self, _i: &'ast StmtAssembly)

Source§

fn visit_stmt_break(&mut self, _i: &'ast StmtBreak)

Source§

fn visit_stmt_continue(&mut self, _i: &'ast StmtContinue)

Source§

fn visit_stmt_dowhile(&mut self, stmt_dowhile: &'ast StmtDoWhile)

Source§

fn visit_stmt_emit(&mut self, emit: &'ast StmtEmit)

Source§

fn visit_stmt_for(&mut self, stmt_for: &'ast StmtFor)

Source§

fn visit_stmt_if(&mut self, stmt_if: &'ast StmtIf)

Source§

fn visit_stmt_return(&mut self, ret: &'ast StmtReturn)

Source§

fn visit_stmt_revert(&mut self, rvert: &'ast StmtRevert)

Source§

fn visit_stmt_try(&mut self, stmt_try: &'ast StmtTry)

Source§

fn visit_unchecked_block(&mut self, ublock: &'ast UncheckedBlock)

Source§

fn visit_stmt_var_decl(&mut self, stmt_var_decl: &'ast StmtVarDecl)

Source§

fn visit_stmt_while(&mut self, stmt_while: &'ast StmtWhile)

Source§

fn visit_expr(&mut self, expr: &'ast Expr)

Source§

fn visit_expr_array(&mut self, i: &'ast ExprArray)

Source§

fn visit_expr_binary(&mut self, i: &'ast ExprBinary)

Source§

fn visit_expr_call(&mut self, i: &'ast ExprCall)

Source§

fn visit_expr_call_options(&mut self, i: &'ast ExprCallOptions)

Source§

fn visit_expr_delete(&mut self, i: &'ast ExprDelete)

Source§

fn visit_expr_index(&mut self, i: &'ast ExprIndex)

Source§

fn visit_lit(&mut self, i: &'ast Lit)

Source§

fn visit_lit_denominated(&mut self, i: &'ast LitDenominated)

Source§

fn visit_expr_member(&mut self, i: &'ast ExprMember)

Source§

fn visit_expr_new(&mut self, i: &'ast ExprNew)

Source§

fn visit_expr_payable(&mut self, i: &'ast ExprPayable)

Source§

fn visit_expr_postfix(&mut self, i: &'ast ExprPostfix)

Source§

fn visit_expr_ternary(&mut self, i: &'ast ExprTernary)

Source§

fn visit_expr_tuple(&mut self, i: &'ast ExprTuple)

Source§

fn visit_expr_type_call(&mut self, i: &'ast ExprTypeCall)

Source§

fn visit_expr_unary(&mut self, i: &'ast ExprUnary)

Source§

fn visit_lit_str(&mut self, lit: &'ast LitStr)

Source§

fn visit_ident(&mut self, ident: &'ast SolIdent)

Source§

fn visit_path(&mut self, ident: &'ast SolPath)

Source§

fn visit_type(&mut self, ty: &'ast Type)

Source§

fn visit_variable_declaration(&mut self, var: &'ast VariableDeclaration)

Source§

fn visit_variable_definition(&mut self, var: &'ast VariableDefinition)

Source§

fn visit_parameter_list(&mut self, params: &'ast Parameters<Comma>)

Source§

fn visit_field_list(&mut self, params: &'ast Parameters<Semi>)

Source§

fn visit_file(&mut self, file: &'ast File)

Source§

fn visit_item_contract(&mut self, contract: &'ast ItemContract)

Source§

fn visit_item_enum(&mut self, enumm: &'ast ItemEnum)

Source§

fn visit_import_directive(&mut self, import: &'ast ImportDirective)

Source§

fn visit_pragma_directive(&mut self, pragma: &'ast PragmaDirective)

Source§

fn visit_item_struct(&mut self, strukt: &'ast ItemStruct)

Source§

fn visit_item_udt(&mut self, udt: &'ast ItemUdt)

Source§

fn visit_using_directive(&mut self, using: &'ast UsingDirective)

Auto Trait Implementations§

§

impl<'ast> Freeze for ExpCtxt<'ast>

§

impl<'ast> RefUnwindSafe for ExpCtxt<'ast>

§

impl<'ast> !Send for ExpCtxt<'ast>

§

impl<'ast> !Sync for ExpCtxt<'ast>

§

impl<'ast> Unpin for ExpCtxt<'ast>

§

impl<'ast> UnwindSafe for ExpCtxt<'ast>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.