• Home
  • Raw
  • Download

Lines Matching refs:Some

147         Some(ch) if is_ident_continue(ch) => Err(Reject),  in word_break()
148 Some(_) | None => Ok(input), in word_break()
169 Some(first) => first, in token_stream()
173 Some((lo, _frame)) => { in token_stream()
179 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream()
183 if let Some(open_delimiter) = match first { in token_stream()
184 b'(' => Some(Delimiter::Parenthesis), in token_stream()
185 b'[' => Some(Delimiter::Bracket), in token_stream()
186 b'{' => Some(Delimiter::Brace), in token_stream()
195 } else if let Some(close_delimiter) = match first { in token_stream()
196 b')' => Some(Delimiter::Parenthesis), in token_stream()
197 b']' => Some(Delimiter::Bracket), in token_stream()
198 b'}' => Some(Delimiter::Brace), in token_stream()
202 Some(frame) => frame, in token_stream()
298 Some((_, ch)) if is_ident_start(ch) => {} in ident_not_raw()
357 while let Some((i, ch)) = chars.next() { in cooked_string()
364 Some((_, '\n')) => {} in cooked_string()
368 Some((_, 'x')) => { in cooked_string()
373 Some((_, 'n')) | Some((_, 'r')) | Some((_, 't')) | Some((_, '\\')) in cooked_string()
374 | Some((_, '\'')) | Some((_, '"')) | Some((_, '0')) => {} in cooked_string()
375 Some((_, 'u')) => { in cooked_string()
380 Some((_, ch @ '\n')) | Some((_, ch @ '\r')) => { in cooked_string()
387 Some((_, ch)) if ch.is_whitespace() => { in cooked_string()
415 while let Some((offset, b)) = bytes.next() { in cooked_byte_string()
422 Some((_, b'\n')) => {} in cooked_byte_string()
426 Some((_, b'x')) => { in cooked_byte_string()
431 Some((_, b'n')) | Some((_, b'r')) | Some((_, b't')) | Some((_, b'\\')) in cooked_byte_string()
432 | Some((_, b'0')) | Some((_, b'\'')) | Some((_, b'"')) => {} in cooked_byte_string()
433 Some((newline, b @ b'\n')) | Some((newline, b @ b'\r')) => { in cooked_byte_string()
442 Some((_, ch)) if ch.is_whitespace() => last = ch, in cooked_byte_string()
443 Some((offset, _)) => { in cooked_byte_string()
464 while let Some((i, ch)) = chars.next() { in raw_string()
474 while let Some((i, ch)) = chars.next() { in raw_string()
481 Some((_, '\n')) => {} in raw_string()
494 Some(b'\\') => match bytes.next().map(|(_, b)| b) { in byte()
495 Some(b'x') => backslash_x_byte(&mut bytes), in byte()
496 Some(b'n') | Some(b'r') | Some(b't') | Some(b'\\') | Some(b'0') | Some(b'\'') in byte()
497 | Some(b'"') => true, in byte()
517 Some('\\') => match chars.next().map(|(_, ch)| ch) { in character()
518 Some('x') => backslash_x_char(&mut chars), in character()
519 Some('u') => backslash_u(&mut chars), in character()
520 Some('n') | Some('r') | Some('t') | Some('\\') | Some('0') | Some('\'') | Some('"') => { in character()
538 Some((_, ch)) => match ch {
593 if let Some(ch) = rest.chars().next() { in float()
604 Some(ch) if ch >= '0' && ch <= '9' => {} in float_digits()
611 while let Some(&ch) = chars.peek() { in float_digits()
654 while let Some(&ch) = chars.peek() { in float_digits()
689 if let Some(ch) = rest.chars().next() { in int()
777 Some(ch) => ch, in punct_char()
802 while let Some(cr) = scan_for_bare_cr.find('\r') { in doc_comment()