pub enum ResolvedTarget {
Function {
contract_name: Option<String>,
function_name: String,
node_type: NodeType,
},
InterfaceMethod {
interface_name: String,
method_name: String,
implementation: Option<Box<ResolvedTarget>>,
},
BuiltIn {
object_type: String,
name: String,
},
NotCallable {
reason: String,
},
External {
address_expr: String,
},
TypeCast {
type_name: String,
},
}
Expand description
Represents the resolved target of a specific call step. Stores names, allowing cg.rs to perform the final node ID lookup.
Variants§
Function
Resolved to a specific function/modifier/constructor.
InterfaceMethod
Resolved to an interface method. Implementation might be unique, ambiguous, or external.
Fields
§
implementation: Option<Box<ResolvedTarget>>
If a single, concrete implementation was found, provide its details.
BuiltIn
Represents a built-in function or property (e.g., .push, .balance).
NotCallable
Resolution failed or target is not callable (e.g., state variable access).
External
Target is external/unknown (e.g., call to an address).
TypeCast
Represents a type cast expression like TypeName(...)
.
Trait Implementations§
Source§impl Clone for ResolvedTarget
impl Clone for ResolvedTarget
Source§fn clone(&self) -> ResolvedTarget
fn clone(&self) -> ResolvedTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResolvedTarget
impl Debug for ResolvedTarget
Source§impl Ord for ResolvedTarget
impl Ord for ResolvedTarget
Source§fn cmp(&self, other: &ResolvedTarget) -> Ordering
fn cmp(&self, other: &ResolvedTarget) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResolvedTarget
impl PartialEq for ResolvedTarget
Source§impl PartialOrd for ResolvedTarget
impl PartialOrd for ResolvedTarget
impl Eq for ResolvedTarget
impl StructuralPartialEq for ResolvedTarget
Auto Trait Implementations§
impl Freeze for ResolvedTarget
impl RefUnwindSafe for ResolvedTarget
impl Send for ResolvedTarget
impl Sync for ResolvedTarget
impl Unpin for ResolvedTarget
impl UnwindSafe for ResolvedTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.