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

Function context_multiline

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

Source from the content-addressed store, hash-verified

389
390#[test]
391fn context_multiline() {
392 let content = "<?php\nfoo(\n $x,\n ";
393 let pos = Position {
394 line: 3,
395 character: 4,
396 };
397 let ctx = detect_named_arg_context(content, pos);
398 assert!(ctx.is_some());
399 let ctx = ctx.unwrap();
400 assert_eq!(ctx.call_expression, "foo");
401 assert_eq!(ctx.positional_count, 1);
402}
403
404// ── build_named_arg_completions ─────────────────────────────────
405

Callers

nothing calls this directly

Calls 2

detect_named_arg_contextFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected