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

Function context_method_call

tests/unit/named_args_internals.rs:320–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318
319#[test]
320fn context_method_call() {
321 let content = "<?php\n$this->method(";
322 let pos = Position {
323 line: 1,
324 character: 16,
325 };
326 let ctx = detect_named_arg_context(content, pos);
327 assert!(ctx.is_some());
328 assert_eq!(ctx.unwrap().call_expression, "$this->method");
329}
330
331#[test]
332fn context_static_call() {

Callers

nothing calls this directly

Calls 1

detect_named_arg_contextFunction · 0.85

Tested by

no test coverage detected