pub struct CallableSpan {
pub name: VarRef,
pub name_pos: LineCol,
pub params: Vec<VarRef>,
pub body: Vec<Statement>,
pub end_pos: LineCol,
}
Expand description
Components of a FUNCTION
or SUB
definition.
Fields§
§name: VarRef
Name of the callable, expressed as a variable reference. For functions, this contains a type, and for subroutines, it does not.
name_pos: LineCol
Position of the name of the callable.
params: Vec<VarRef>
Definition of the callable parameters.
body: Vec<Statement>
Statements within the callable’s body.
end_pos: LineCol
Position of the end of the callable, used when injecting the implicit return.
Trait Implementations§
Source§impl Debug for CallableSpan
impl Debug for CallableSpan
Source§impl PartialEq for CallableSpan
impl PartialEq for CallableSpan
impl StructuralPartialEq for CallableSpan
Auto Trait Implementations§
impl Freeze for CallableSpan
impl RefUnwindSafe for CallableSpan
impl Send for CallableSpan
impl Sync for CallableSpan
impl Unpin for CallableSpan
impl UnwindSafe for CallableSpan
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