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

Function non_graphic_byte

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

Source from the content-addressed store, hash-verified

444
445 #[test]
446 fn non_graphic_byte() {
447 let file_id = FileId::new("test.php");
448 let err = ParseError::SyntaxError(SyntaxError::UnexpectedToken(file_id, 0x01, pos(0)));
449 let msg = format_parse_error(&err);
450 assert_eq!(msg, "Syntax error: unexpected byte 0x01");
451 }
452}

Callers

nothing calls this directly

Calls 2

posFunction · 0.85
format_parse_errorFunction · 0.85

Tested by

no test coverage detected