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

Method resolve_callable

src/signature_help.rs:637–646  ·  view source on GitHub ↗

Resolve a call expression string to the callable's metadata. Delegates to the shared [`Backend::resolve_callable_target`] and converts the result into the local [`ResolvedCallable`] type.

(
        &self,
        expr: &str,
        content: &str,
        position: Position,
        ctx: &FileContext,
    )

Source from the content-addressed store, hash-verified

635 /// Delegates to the shared [`Backend::resolve_callable_target`] and
636 /// converts the result into the local [`ResolvedCallable`] type.
637 fn resolve_callable(
638 &self,
639 expr: &str,
640 content: &str,
641 position: Position,
642 ctx: &FileContext,
643 ) -> Option<ResolvedCallable> {
644 self.resolve_callable_target(expr, content, position, ctx)
645 .map(ResolvedCallable::from)
646 }
647
648 /// Find the callable target for a first-class callable assignment
649 /// like `$fn = someTarget(...)` and return the callable target string

Callers 1

resolve_signatureMethod · 0.80

Calls 2

mapMethod · 0.45

Tested by

no test coverage detected