MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / collect_function_scope

Function collect_function_scope

src/scope_collector/mod.rs:674–681  ·  view source on GitHub ↗

Convenience: collect scope from a full method or function AST node. Includes parameter declarations and the body.

(
    params: &FunctionLikeParameterList<'a>,
    body: &[Statement<'a>],
    body_start: u32,
    body_end: u32,
)

Source from the content-addressed store, hash-verified

672///
673/// Includes parameter declarations and the body.
674pub(crate) fn collect_function_scope<'a>(
675 params: &FunctionLikeParameterList<'a>,
676 body: &[Statement<'a>],
677 body_start: u32,
678 body_end: u32,
679) -> ScopeMap {
680 collect_function_scope_with_kind(params, body, body_start, body_end, FrameKind::Function)
681}
682
683/// Like [`collect_function_scope`] but accepts an optional
684/// [`ByRefResolver`] callback.

Callers 3

collect_from_functionFunction · 0.85
collect_from_methodFunction · 0.85

Calls 1

Tested by 2

collect_from_functionFunction · 0.68
collect_from_methodFunction · 0.68