Struct tree_sitter_graph::functions::Functions [−][src]
pub struct Functions { /* fields omitted */ }
Expand description
A library of named functions.
Implementations
Returns the standard library of functions, as defined in the language reference.
Adds a new function to this library.
pub fn call(
&mut self,
ctx: &Context,
name: Identifier,
graph: &mut Graph<'_>,
source: &str,
parameters: &mut dyn Parameters
) -> Result<Value, ExecutionError>
pub fn call(
&mut self,
ctx: &Context,
name: Identifier,
graph: &mut Graph<'_>,
source: &str,
parameters: &mut dyn Parameters
) -> Result<Value, ExecutionError>
Calls a named function, returning an error if there is no function with that name.