pub fn is_variable_captured( tree: &Tree, var_name: &str, use_range: Range, declaration_range: Range, ) -> bool
Check if a variable is captured in a closure or goroutine