pub enum FunctionCallInvoked {
Function(Pointer<PrefixExp>),
TableMethod {
table: Pointer<PrefixExp>,
colon: Pointer<Token>,
method: Pointer<Token>,
},
}Expand description
Different ways a function can be called.
Variants§
Function(Pointer<PrefixExp>)
A standalone function call or one in a table.
local _ = foo()
local _ = t.bar()TableMethod
A method in a function, a method is a function that’s called with : instead
of ..
local _ = t:foo()Trait Implementations§
Source§impl Clone for FunctionCallInvoked
impl Clone for FunctionCallInvoked
Source§fn clone(&self) -> FunctionCallInvoked
fn clone(&self) -> FunctionCallInvoked
Returns a copy 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 FunctionCallInvoked
impl Debug for FunctionCallInvoked
Source§impl GetRange for FunctionCallInvoked
impl GetRange for FunctionCallInvoked
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Hash for FunctionCallInvoked
impl Hash for FunctionCallInvoked
Source§impl Ord for FunctionCallInvoked
impl Ord for FunctionCallInvoked
Source§fn cmp(&self, other: &FunctionCallInvoked) -> Ordering
fn cmp(&self, other: &FunctionCallInvoked) -> 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 Parse for FunctionCallInvoked
impl Parse for FunctionCallInvoked
Source§impl PartialEq for FunctionCallInvoked
impl PartialEq for FunctionCallInvoked
Source§impl PartialOrd for FunctionCallInvoked
impl PartialOrd for FunctionCallInvoked
Source§impl Print for FunctionCallInvoked
impl Print for FunctionCallInvoked
impl Eq for FunctionCallInvoked
impl StructuralPartialEq for FunctionCallInvoked
Auto Trait Implementations§
impl Freeze for FunctionCallInvoked
impl RefUnwindSafe for FunctionCallInvoked
impl !Send for FunctionCallInvoked
impl !Sync for FunctionCallInvoked
impl Unpin for FunctionCallInvoked
impl UnwindSafe for FunctionCallInvoked
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