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

Function finds_no_docblock

src/code_actions/phpstan/add_throws.rs:842–848  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840
841 #[test]
842 fn finds_no_docblock() {
843 let php = "<?php\nclass Foo {\n public function bar(): void {\n throw new \\RuntimeException();\n }\n}\n";
844 // diag_line = 3
845 let info = find_enclosing_docblock(php, 3).unwrap();
846 assert!(!info.has_docblock);
847 assert_eq!(info.indent, " ");
848 }
849
850 // ── build_throws_edit (into existing docblock) ──────────────────
851

Callers

nothing calls this directly

Calls 2

find_enclosing_docblockFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected