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

Function syntax_error_eof

src/parser/error_format.rs:438–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436
437 #[test]
438 fn syntax_error_eof() {
439 let file_id = FileId::new("test.php");
440 let err = ParseError::SyntaxError(SyntaxError::UnexpectedEndOfFile(file_id, pos(50)));
441 let msg = format_parse_error(&err);
442 assert_eq!(msg, "Syntax error: unexpected end of file");
443 }
444
445 #[test]
446 fn non_graphic_byte() {

Callers

nothing calls this directly

Calls 2

posFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected