pub fn has_reference(arena: &AstArena, token: u32, functions: bool) -> bool
true if a token or one of its descendants is a var() function, or a custom function call when functions is set
functions