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

Function removes_eol_ignore_comment

src/code_actions/phpstan/ignore.rs:701–710  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

699
700 #[test]
701 fn removes_eol_ignore_comment() {
702 let content = "<?php\necho $x; // @phpstan-ignore variable.undefined\n";
703 let edit = build_remove_ignore_edit(content, 1, 1, Some("variable.undefined"));
704 let edit = edit.unwrap();
705 // Should remove the comment but keep "echo $x;"
706 assert_eq!(edit.range.start.line, 1);
707 assert_eq!(edit.new_text, "");
708 // The code part "echo $x;" should be preserved (8 chars).
709 assert_eq!(edit.range.start.character, 8);
710 }
711
712 #[test]
713 fn removes_single_id_from_multi_id_ignore() {

Callers

nothing calls this directly

Calls 2

build_remove_ignore_editFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected