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

Function unexpected_eof_with_expected

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

Source from the content-addressed store, hash-verified

380
381 #[test]
382 fn unexpected_eof_with_expected() {
383 let file_id = FileId::new("test.php");
384 let err =
385 ParseError::UnexpectedEndOfFile(Box::new([TokenKind::Semicolon]), file_id, pos(100));
386 let msg = format_parse_error(&err);
387 assert_eq!(msg, "Syntax error: unexpected end of file, expected `;`");
388 }
389
390 #[test]
391 fn unexpected_eof_no_expected() {

Callers

nothing calls this directly

Calls 2

posFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected