Lines Matching full:unexpected
263 unexpected: Cell<Option<Rc<Cell<Unexpected>>>>, field
272 inner.set(Unexpected::Some(unexpected_span, delimiter)); in drop()
390 unexpected: Rc<Cell<Unexpected>>, in new_parse_buffer() argument
397 unexpected: Cell::new(Some(unexpected)), in new_parse_buffer()
401 pub(crate) enum Unexpected { enum
404 Chain(Rc<Cell<Unexpected>>),
407 impl Default for Unexpected { implementation
409 Unexpected::None in default()
413 impl Clone for Unexpected { implementation
416 Unexpected::None => Unexpected::None, in clone()
417 Unexpected::Some(span, delimiter) => Unexpected::Some(*span, *delimiter), in clone()
418 Unexpected::Chain(next) => Unexpected::Chain(next.clone()), in clone()
423 // We call this on Cell<Unexpected> and Cell<Option<T>> where temporarily
432 fn inner_unexpected(buffer: &ParseBuffer) -> (Rc<Cell<Unexpected>>, Option<(Span, Delimiter)>) { in inner_unexpected() argument
433 let mut unexpected = get_unexpected(buffer); in inner_unexpected() localVariable
435 match cell_clone(&unexpected) { in inner_unexpected()
436 Unexpected::None => return (unexpected, None), in inner_unexpected()
437 Unexpected::Some(span, delimiter) => return (unexpected, Some((span, delimiter))), in inner_unexpected()
438 Unexpected::Chain(next) => unexpected = next, in inner_unexpected()
443 pub(crate) fn get_unexpected(buffer: &ParseBuffer) -> Rc<Cell<Unexpected>> { in get_unexpected() argument
444 cell_clone(&buffer.unexpected).unwrap() in get_unexpected()
452 if let Some(unexpected) = span_of_unexpected_ignoring_nones(inner) { in span_of_unexpected_ignoring_nones()
453 return Some(unexpected); in span_of_unexpected_ignoring_nones()
973 // Not the parent's unexpected. Nothing cares whether the clone in fork()
975 unexpected: Cell::new(Some(Rc::new(Cell::new(Unexpected::None)))), in fork()
1284 let unexpected = Rc::new(Cell::new(Unexpected::None)); in tokens_to_parse_buffer() localVariable
1285 new_parse_buffer(scope, cursor, unexpected) in tokens_to_parse_buffer()
1311 let unexpected = Rc::new(Cell::new(Unexpected::None)); in __parse_scoped() localVariable
1312 let state = new_parse_buffer(scope, cursor, unexpected); in __parse_scoped()
1331 Delimiter::Parenthesis => "unexpected token, expected `)`", in err_unexpected_token()
1332 Delimiter::Brace => "unexpected token, expected `}`", in err_unexpected_token()
1333 Delimiter::Bracket => "unexpected token, expected `]`", in err_unexpected_token()
1334 Delimiter::None => "unexpected token", in err_unexpected_token()
1363 /// error: unexpected token