pub struct FunctionCall {
pub invoked: FunctionCallInvoked,
pub arguments: FunctionArguments,
}Expand description
A struct representing a function call.
local _ = foo(1, 2, 3)Fields§
§invoked: FunctionCallInvokedThe function being called.
arguments: FunctionArgumentsThe arguments passed to the function.
Implementations§
Source§impl FunctionCall
impl FunctionCall
Sourcepub fn try_parse_with_invoked(
lexer: &mut Lexer,
errors: &mut Vec<Error>,
invoked: FunctionCallInvoked,
) -> Option<Self>
pub fn try_parse_with_invoked( lexer: &mut Lexer, errors: &mut Vec<Error>, invoked: FunctionCallInvoked, ) -> Option<Self>
Parse a FunctionCall with the passed FunctionCallInvoked. This
method keeps parsing repeatedly to allow for chained of functions calls:
foo()()()Trait Implementations§
Source§impl Clone for FunctionCall
impl Clone for FunctionCall
Source§fn clone(&self) -> FunctionCall
fn clone(&self) -> FunctionCall
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 FunctionCall
impl Debug for FunctionCall
Source§impl GetRange for FunctionCall
impl GetRange for FunctionCall
Source§impl Hash for FunctionCall
impl Hash for FunctionCall
Source§impl Ord for FunctionCall
impl Ord for FunctionCall
Source§fn cmp(&self, other: &FunctionCall) -> Ordering
fn cmp(&self, other: &FunctionCall) -> 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<PrefixExp> for FunctionCall
impl Parse<PrefixExp> for FunctionCall
Source§impl Parse<TableAccessPrefix> for FunctionCall
impl Parse<TableAccessPrefix> for FunctionCall
Source§impl Parse for FunctionCall
impl Parse for FunctionCall
Source§impl PartialEq for FunctionCall
impl PartialEq for FunctionCall
Source§impl PartialOrd for FunctionCall
impl PartialOrd for FunctionCall
Source§impl Print for FunctionCall
impl Print for FunctionCall
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
Source§impl TryParse for FunctionCall
impl TryParse for FunctionCall
impl Eq for FunctionCall
impl StructuralPartialEq for FunctionCall
Auto Trait Implementations§
impl Freeze for FunctionCall
impl RefUnwindSafe for FunctionCall
impl !Send for FunctionCall
impl !Sync for FunctionCall
impl Unpin for FunctionCall
impl UnwindSafe for FunctionCall
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