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

Function context_constructor

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

Source from the content-addressed store, hash-verified

342
343#[test]
344fn context_constructor() {
345 let content = "<?php\nnew Foo(";
346 let pos = Position {
347 line: 1,
348 character: 8,
349 };
350 let ctx = detect_named_arg_context(content, pos);
351 assert!(ctx.is_some());
352 assert_eq!(ctx.unwrap().call_expression, "new Foo");
353}
354
355#[test]
356fn no_context_typing_variable() {

Callers

nothing calls this directly

Calls 1

detect_named_arg_contextFunction · 0.85

Tested by

no test coverage detected