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

Function context_after_positional

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

Source from the content-addressed store, hash-verified

289
290#[test]
291fn context_after_positional() {
292 let content = "<?php\nfoo($x, ";
293 let pos = Position {
294 line: 1,
295 character: 8,
296 };
297 let ctx = detect_named_arg_context(content, pos);
298 assert!(ctx.is_some());
299 let ctx = ctx.unwrap();
300 assert_eq!(ctx.call_expression, "foo");
301 assert_eq!(ctx.positional_count, 1);
302}
303
304#[test]
305fn context_after_named_arg() {

Callers

nothing calls this directly

Calls 2

detect_named_arg_contextFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected