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

Function unexpected_token_no_expected

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

Source from the content-addressed store, hash-verified

373
374 #[test]
375 fn unexpected_token_no_expected() {
376 let err = ParseError::UnexpectedToken(Box::new([]), TokenKind::At, span(0, 1));
377 let msg = format_parse_error(&err);
378 assert_eq!(msg, "Syntax error: unexpected token `@`");
379 }
380
381 #[test]
382 fn unexpected_eof_with_expected() {

Callers

nothing calls this directly

Calls 2

spanFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected