Home
last modified time | relevance | path

Searched defs:EscapeError (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/rust/compiler/rustc_lexer/src/
Dunescape.rs12 pub enum EscapeError { enum
66 impl EscapeError { impl
81 F: FnMut(Range<usize>, Result<char, EscapeError>), in unescape_literal() argument
118 F: FnMut(Range<usize>, Result<CStrUnit, EscapeError>), in unescape_c_string() argument
133 pub fn unescape_char(src: &str) -> Result<char, EscapeError> { in unescape_char() argument
139 pub fn unescape_byte(src: &str) -> Result<u8, EscapeError> { in unescape_byte() argument
205 ) -> Result<T, EscapeError> { in scan_escape() argument
243 ) -> Result<char, EscapeError> { in scan_unicode() argument
297 fn ascii_check(c: char, characters_should_be_ascii: bool) -> Result<char, EscapeError> { in ascii_check() argument
306 fn unescape_char_or_byte(chars: &mut Chars<'_>, is_byte: bool) -> Result<char, EscapeError> { in unescape_char_or_byte() argument
[all …]
/third_party/rust/rust/compiler/rustc_lexer/src/unescape/
Dtests.rs5 fn check(literal_text: &str, expected_error: EscapeError) { in test_unescape_char_bad()
101 fn check(literal: &str, expected: &[(Range<usize>, Result<char, EscapeError>)]) { in test_unescape_str_warn() argument
148 fn check(literal_text: &str, expected_error: EscapeError) { in test_unescape_byte_bad()
265 fn check(literal: &str, expected: &[(Range<usize>, Result<char, EscapeError>)]) { in test_unescape_raw_str() argument
277 fn check(literal: &str, expected: &[(Range<usize>, Result<char, EscapeError>)]) { in test_unescape_raw_byte_str() argument
/third_party/rust/rust/compiler/rustc_parse/src/lexer/
Dunescape_error_reporting.rs23 error: EscapeError, in emit_unescape_error()
Dmod.rs683 unescape: fn(&str, Mode, &mut dyn FnMut(Range<usize>, Result<(), EscapeError>)), in cook_common() argument
/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/ast/
Dtoken_ext.rs173 cb: &mut dyn FnMut(TextRange, Result<char, rustc_lexer::unescape::EscapeError>), in escaped_char_ranges()