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

Function syntax_error_unrecognized_char

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

Source from the content-addressed store, hash-verified

428
429 #[test]
430 fn syntax_error_unrecognized_char() {
431 let file_id = FileId::new("test.php");
432 let err = ParseError::SyntaxError(SyntaxError::UnrecognizedToken(file_id, b'@', pos(10)));
433 let msg = format_parse_error(&err);
434 assert_eq!(msg, "Syntax error: unrecognized character `@`");
435 }
436
437 #[test]
438 fn syntax_error_eof() {

Callers

nothing calls this directly

Calls 2

posFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected