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: VarRefName of the callable, expressed as a variable reference. For functions, this contains a type, and for subroutines, it does not.
name_pos: LineColPosition 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: LineColPosition of the end of the callable, used when injecting the implicit return.