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

Function unexpected_eof_no_expected

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

Source from the content-addressed store, hash-verified

389
390 #[test]
391 fn unexpected_eof_no_expected() {
392 let file_id = FileId::new("test.php");
393 let err = ParseError::UnexpectedEndOfFile(Box::new([]), file_id, pos(50));
394 let msg = format_parse_error(&err);
395 assert_eq!(msg, "Syntax error: unexpected end of file");
396 }
397
398 #[test]
399 fn unclosed_single_quoted_string() {

Callers

nothing calls this directly

Calls 2

posFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected