• Home
  • Raw
  • Download

Lines Matching refs:Some

148         Some(ch) if is_ident_continue(ch) => Err(Reject),  in word_break()
149 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()
299 Some((_, ch)) if is_ident_start(ch) => {} in ident_not_raw()
358 while let Some((i, ch)) = chars.next() { in cooked_string()
365 Some((_, '\n')) => {} in cooked_string()
369 Some((_, 'x')) => { in cooked_string()
374 Some((_, 'n')) | Some((_, 'r')) | Some((_, 't')) | Some((_, '\\')) in cooked_string()
375 | Some((_, '\'')) | Some((_, '"')) | Some((_, '0')) => {} in cooked_string()
376 Some((_, 'u')) => { in cooked_string()
381 Some((_, ch @ '\n')) | Some((_, ch @ '\r')) => { in cooked_string()
388 Some((_, ch)) if ch.is_whitespace() => { in cooked_string()
416 while let Some((offset, b)) = bytes.next() { in cooked_byte_string()
423 Some((_, b'\n')) => {} in cooked_byte_string()
427 Some((_, b'x')) => { in cooked_byte_string()
432 Some((_, b'n')) | Some((_, b'r')) | Some((_, b't')) | Some((_, b'\\')) in cooked_byte_string()
433 | Some((_, b'0')) | Some((_, b'\'')) | Some((_, b'"')) => {} in cooked_byte_string()
434 Some((newline, b @ b'\n')) | Some((newline, b @ b'\r')) => { in cooked_byte_string()
443 Some((_, ch)) if ch.is_whitespace() => last = ch, in cooked_byte_string()
444 Some((offset, _)) => { in cooked_byte_string()
479 while let Some((i, ch)) = chars.next() { in raw_string()
486 Some((_, '\n')) => {} in raw_string()
499 Some(b'\\') => match bytes.next().map(|(_, b)| b) { in byte()
500 Some(b'x') => backslash_x_byte(&mut bytes), in byte()
501 Some(b'n') | Some(b'r') | Some(b't') | Some(b'\\') | Some(b'0') | Some(b'\'') in byte()
502 | Some(b'"') => true, in byte()
522 Some('\\') => match chars.next().map(|(_, ch)| ch) { in character()
523 Some('x') => backslash_x_char(&mut chars), in character()
524 Some('u') => backslash_u(&mut chars), in character()
525 Some('n') | Some('r') | Some('t') | Some('\\') | Some('0') | Some('\'') | Some('"') => { in character()
543 Some((_, ch)) => match ch {
598 if let Some(ch) = rest.chars().next() { in float()
609 Some(ch) if ch >= '0' && ch <= '9' => {} in float_digits()
616 while let Some(&ch) = chars.peek() { in float_digits()
658 while let Some(&ch) = chars.peek() { in float_digits()
693 if let Some(ch) = rest.chars().next() { in int()
781 Some(ch) => ch, in punct_char()
806 while let Some(cr) = scan_for_bare_cr.find('\r') { in doc_comment()