Trait solang_parser::helpers::OptionalCodeLocation

source ·
pub trait OptionalCodeLocation {
    // Required method
    fn loc_opt(&self) -> Option<Loc>;
}
Expand description

Returns the optional code location.

Required Methods§

source

fn loc_opt(&self) -> Option<Loc>

Returns the optional code location of self.

Implementations on Foreign Types§

source§

impl<'a, T: ?Sized + ToOwned + OptionalCodeLocation> OptionalCodeLocation for Cow<'a, T>

source§

fn loc_opt(&self) -> Option<Loc>

source§

impl<'a, T: ?Sized + OptionalCodeLocation> OptionalCodeLocation for &'a T

source§

fn loc_opt(&self) -> Option<Loc>

source§

impl<'a, T: ?Sized + OptionalCodeLocation> OptionalCodeLocation for &'a mut T

source§

fn loc_opt(&self) -> Option<Loc>

source§

impl<T: CodeLocation> OptionalCodeLocation for Option<T>

source§

fn loc_opt(&self) -> Option<Loc>

source§

impl<T: CodeLocation> OptionalCodeLocation for [T]

source§

fn loc_opt(&self) -> Option<Loc>

source§

impl<T: CodeLocation> OptionalCodeLocation for Vec<T>

source§

fn loc_opt(&self) -> Option<Loc>

source§

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

source§

fn loc_opt(&self) -> Option<Loc>

source§

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

source§

fn loc_opt(&self) -> Option<Loc>

source§

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

source§

fn loc_opt(&self) -> Option<Loc>

Implementors§

source§

impl OptionalCodeLocation for LexicalError

source§

impl OptionalCodeLocation for CatchClause

source§

impl OptionalCodeLocation for Comment

source§

impl OptionalCodeLocation for ContractPart

source§

impl OptionalCodeLocation for ContractTy

source§

impl OptionalCodeLocation for Expression

source§

impl OptionalCodeLocation for FunctionAttribute

source§

impl OptionalCodeLocation for Import

source§

impl OptionalCodeLocation for Loc

source§

impl OptionalCodeLocation for Mutability

source§

impl OptionalCodeLocation for SourceUnitPart

source§

impl OptionalCodeLocation for Statement

source§

impl OptionalCodeLocation for StorageLocation

source§

impl OptionalCodeLocation for UsingList

source§

impl OptionalCodeLocation for VariableAttribute

source§

impl OptionalCodeLocation for Visibility

source§

impl OptionalCodeLocation for YulExpression

source§

impl OptionalCodeLocation for YulStatement

source§

impl OptionalCodeLocation for YulSwitchOptions

source§

impl OptionalCodeLocation for Annotation

source§

impl OptionalCodeLocation for Base

source§

impl OptionalCodeLocation for ContractDefinition

source§

impl OptionalCodeLocation for EnumDefinition

source§

impl OptionalCodeLocation for ErrorDefinition

source§

impl OptionalCodeLocation for ErrorParameter

source§

impl OptionalCodeLocation for EventDefinition

source§

impl OptionalCodeLocation for EventParameter

source§

impl OptionalCodeLocation for FunctionDefinition

source§

impl OptionalCodeLocation for HexLiteral

source§

impl OptionalCodeLocation for Identifier

source§

impl OptionalCodeLocation for IdentifierPath

source§

impl OptionalCodeLocation for NamedArgument

source§

impl OptionalCodeLocation for Parameter

source§

impl OptionalCodeLocation for SourceUnit

source§

impl OptionalCodeLocation for StringLiteral

source§

impl OptionalCodeLocation for StructDefinition

source§

impl OptionalCodeLocation for TypeDefinition

source§

impl OptionalCodeLocation for Using

source§

impl OptionalCodeLocation for UsingFunction

source§

impl OptionalCodeLocation for VariableDeclaration

source§

impl OptionalCodeLocation for VariableDefinition

source§

impl OptionalCodeLocation for YulBlock

source§

impl OptionalCodeLocation for YulFor

source§

impl OptionalCodeLocation for YulFunctionCall

source§

impl OptionalCodeLocation for YulFunctionDefinition

source§

impl OptionalCodeLocation for YulSwitch

source§

impl OptionalCodeLocation for YulTypedIdentifier