pub enum ArgFact {
Literal(LiteralValue),
Param(u32),
Binding(BindingArg),
Object(Vec<KeyArg>),
Unknown,
}Expand description
The syntactic value of one call argument.
Variants§
Literal(LiteralValue)
A literal value.
Param(u32)
The value of the parameter at this index of the called function. Only
a self-call has this fact: a call of a local function inside the
body or a default value of that same function. The argument is the
unchanged identifier of a formal identifier parameter that the module
never writes, so the call passes the value that the outer call got. A
rest parameter never gets this fact, because the callee gets [r]
for f(r).
Binding(BindingArg)
An immutable binding: a module-scope const with a literal
initializer, or an enum member.
Object(Vec<KeyArg>)
An object literal with no spread, no computed key, no numeric key,
and no __proto__ key. Each key appears once, with the value of its
last property.
Unknown
Each other expression. args never holds a spread argument, because
the list stops before the first spread.
Trait Implementations§
impl<'__de> Decode<'__de> for ArgFactwhere
'__de:,
impl Encode for ArgFact
impl Eq for ArgFact
impl StructuralPartialEq for ArgFact
Auto Trait Implementations§
impl Forget for ArgFact
impl Freeze for ArgFact
impl Move for ArgFact
impl RefUnwindSafe for ArgFact
impl Send for ArgFact
impl Sync for ArgFact
impl Unpin for ArgFact
impl UnsafeUnpin for ArgFact
impl UnwindSafe for ArgFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
key and return true if they are equal.