forge_fmt::solang_ext::loc

Trait CodeLocationExt

Source
pub trait CodeLocationExt {
    // Required method
    fn loc(&self) -> Loc;
}
Expand description

Returns the code location.

Patched version of [pt::CodeLocation]: includes the block of a [pt::FunctionDefinition] in its loc.

Required Methods§

Source

fn loc(&self) -> Loc

Returns the code location of self.

Implementations on Foreign Types§

Source§

impl CodeLocationExt for Annotation

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Base

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for CatchClause

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Comment

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for ContractDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for ContractPart

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for ContractTy

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for EnumDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for ErrorDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for ErrorParameter

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for EventDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for EventParameter

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Expression

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for FunctionAttribute

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for FunctionDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for HexLiteral

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Identifier

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for IdentifierPath

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Import

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for ImportPath

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Loc

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Mutability

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for NamedArgument

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Parameter

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for SourceUnitPart

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Statement

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for StorageLocation

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for StringLiteral

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for StructDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for TypeDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for Using

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for UsingFunction

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for UsingList

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for VariableAttribute

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for VariableDeclaration

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for VariableDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulBlock

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulExpression

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulFor

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulFunctionCall

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulFunctionDefinition

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulStatement

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulSwitch

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulSwitchOptions

Source§

fn loc(&self) -> Loc

Source§

impl CodeLocationExt for YulTypedIdentifier

Source§

fn loc(&self) -> Loc

Source§

impl<T: ?Sized + ToOwned + CodeLocationExt> CodeLocationExt for Cow<'_, T>

Source§

fn loc(&self) -> Loc

Source§

impl<T: ?Sized + CodeLocationExt> CodeLocationExt for &T

Source§

fn loc(&self) -> Loc

Source§

impl<T: ?Sized + CodeLocationExt> CodeLocationExt for &mut T

Source§

fn loc(&self) -> Loc

Source§

impl<T: ?Sized + CodeLocationExt> CodeLocationExt for Box<T>

Source§

fn loc(&self) -> Loc

Source§

impl<T: ?Sized + CodeLocationExt> CodeLocationExt for Rc<T>

Source§

fn loc(&self) -> Loc

Source§

impl<T: ?Sized + CodeLocationExt> CodeLocationExt for Arc<T>

Source§

fn loc(&self) -> Loc

Implementors§