• Home
  • Raw
  • Download

Lines Matching refs:ErrorKind

70             x => Err(p.error(*x.span(), ast::ErrorKind::ClassEscapeInvalid)),  in into_class_set_item()
88 x => Err(p.error(*x.span(), ast::ErrorKind::ClassRangeLiteral)), in into_class_literal()
383 fn error(&self, span: Span, kind: ast::ErrorKind) -> ast::Error { in error()
423 self.error(span, ast::ErrorKind::CaptureLimitExceeded) in next_capture_index()
442 ast::ErrorKind::GroupNameDuplicate { original: names[i].span }, in add_capture_name()
745 ast::ErrorKind::GroupUnopened, in pop_group()
751 .error(self.span_char(), ast::ErrorKind::GroupUnopened)); in pop_group()
791 self.error(group.span, ast::ErrorKind::GroupUnclosed) in pop_group_end()
808 Err(self.error(group.span, ast::ErrorKind::GroupUnclosed)) in pop_group_end()
905 .error(set.span, ast::ErrorKind::ClassUnclosed); in unclosed_class_error()
1048 self.error(self.span(), ast::ErrorKind::RepetitionMissing) in parse_uncounted_repetition()
1055 self.error(self.span(), ast::ErrorKind::RepetitionMissing) in parse_uncounted_repetition()
1100 self.error(self.span(), ast::ErrorKind::RepetitionMissing) in parse_counted_repetition()
1107 self.error(self.span(), ast::ErrorKind::RepetitionMissing) in parse_counted_repetition()
1115 ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
1120 ast::ErrorKind::DecimalEmpty, in parse_counted_repetition()
1121 ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
1127 ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
1134 ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
1140 ast::ErrorKind::DecimalEmpty, in parse_counted_repetition()
1141 ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
1151 ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
1164 self.error(op_span, ast::ErrorKind::RepetitionCountInvalid) in parse_counted_repetition()
1206 ast::ErrorKind::UnsupportedLookAround, in parse_group()
1221 self.error(open_span, ast::ErrorKind::GroupUnclosed) in parse_group()
1233 ast::ErrorKind::RepetitionMissing, in parse_group()
1271 .error(self.span(), ast::ErrorKind::GroupNameUnexpectedEof)); in parse_capture_name()
1281 ast::ErrorKind::GroupNameInvalid, in parse_capture_name()
1291 .error(self.span(), ast::ErrorKind::GroupNameUnexpectedEof)); in parse_capture_name()
1299 ast::ErrorKind::GroupNameEmpty, in parse_capture_name()
1339 ast::ErrorKind::FlagRepeatedNegation { in parse_flags()
1353 ast::ErrorKind::FlagDuplicate { in parse_flags()
1361 self.error(self.span(), ast::ErrorKind::FlagUnexpectedEof) in parse_flags()
1366 return Err(self.error(span, ast::ErrorKind::FlagDanglingNegation)); in parse_flags()
1388 .error(self.span_char(), ast::ErrorKind::FlagUnrecognized)) in parse_flag()
1451 ast::ErrorKind::EscapeUnexpectedEof, in parse_escape()
1461 ast::ErrorKind::UnsupportedBackreference, in parse_escape()
1471 ast::ErrorKind::UnsupportedBackreference, in parse_escape()
1535 _ => Err(self.error(span, ast::ErrorKind::EscapeUnrecognized)), in parse_escape()
1593 self.error(self.span(), ast::ErrorKind::EscapeUnexpectedEof) in parse_hex()
1625 .error(self.span(), ast::ErrorKind::EscapeUnexpectedEof)); in parse_hex_digits()
1630 ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_digits()
1643 ast::ErrorKind::EscapeHexInvalid, in parse_hex_digits()
1673 ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_brace()
1681 ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_brace()
1692 ast::ErrorKind::EscapeHexEmpty, in parse_hex_brace()
1698 ast::ErrorKind::EscapeHexInvalid, in parse_hex_brace()
1735 return Err(self.error(span, ast::ErrorKind::DecimalEmpty)); in parse_decimal()
1739 None => Err(self.error(span, ast::ErrorKind::DecimalInvalid)), in parse_decimal()
1848 self.error(range.span, ast::ErrorKind::ClassRangeInvalid) in parse_set_class_range()
1904 ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
1914 ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
1931 ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
1946 ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
2050 self.error(self.span(), ast::ErrorKind::EscapeUnexpectedEof) in parse_unicode_class()
2060 .error(self.span(), ast::ErrorKind::EscapeUnexpectedEof)); in parse_unicode_class()
2102 ast::ErrorKind::UnicodeClassInvalid, in parse_unicode_class()
2161 ast::ErrorKind::NestLimitExceeded(::std::u32::MAX), in increment_depth()
2168 ast::ErrorKind::NestLimitExceeded(limit), in increment_depth()
2296 from: ast::ErrorKind, in specialize_err() argument
2297 to: ast::ErrorKind, in specialize_err() argument
2341 kind: ast::ErrorKind,
2517 kind: ast::ErrorKind::NestLimitExceeded(0), in parse_nest_limit()
2536 kind: ast::ErrorKind::NestLimitExceeded(1), in parse_nest_limit()
2543 kind: ast::ErrorKind::NestLimitExceeded(1), in parse_nest_limit()
2572 kind: ast::ErrorKind::NestLimitExceeded(0), in parse_nest_limit()
2589 kind: ast::ErrorKind::NestLimitExceeded(0), in parse_nest_limit()
2607 kind: ast::ErrorKind::NestLimitExceeded(0), in parse_nest_limit()
2628 kind: ast::ErrorKind::NestLimitExceeded(1), in parse_nest_limit()
2635 kind: ast::ErrorKind::NestLimitExceeded(2), in parse_nest_limit()
2642 kind: ast::ErrorKind::NestLimitExceeded(3), in parse_nest_limit()
2649 kind: ast::ErrorKind::NestLimitExceeded(1), in parse_nest_limit()
2656 kind: ast::ErrorKind::NestLimitExceeded(2), in parse_nest_limit()
2896 kind: ast::ErrorKind::EscapeUnrecognized, in parse_ignore_whitespace()
3099 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3106 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3113 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3120 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3127 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3134 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3141 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3148 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3155 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3162 kind: ast::ErrorKind::RepetitionMissing, in parse_uncounted_repetition()
3314 kind: ast::ErrorKind::RepetitionMissing, in parse_counted_repetition()
3321 kind: ast::ErrorKind::RepetitionMissing, in parse_counted_repetition()
3328 kind: ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
3335 kind: ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
3342 kind: ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
3349 kind: ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
3356 kind: ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
3363 kind: ast::ErrorKind::DecimalInvalid, in parse_counted_repetition()
3370 kind: ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
3377 kind: ast::ErrorKind::RepetitionCountDecimalEmpty, in parse_counted_repetition()
3384 kind: ast::ErrorKind::DecimalInvalid, in parse_counted_repetition()
3391 kind: ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
3398 kind: ast::ErrorKind::RepetitionCountUnclosed, in parse_counted_repetition()
3405 kind: ast::ErrorKind::RepetitionCountInvalid, in parse_counted_repetition()
3412 kind: ast::ErrorKind::RepetitionMissing, in parse_counted_repetition()
3419 kind: ast::ErrorKind::RepetitionMissing, in parse_counted_repetition()
3572 kind: ast::ErrorKind::GroupUnopened, in parse_alternate()
3579 kind: ast::ErrorKind::GroupUnclosed, in parse_alternate()
3590 kind: ast::ErrorKind::UnsupportedLookAround, in parse_unsupported_lookaround()
3597 kind: ast::ErrorKind::UnsupportedLookAround, in parse_unsupported_lookaround()
3604 kind: ast::ErrorKind::UnsupportedLookAround, in parse_unsupported_lookaround()
3611 kind: ast::ErrorKind::UnsupportedLookAround, in parse_unsupported_lookaround()
3774 kind: ast::ErrorKind::GroupUnclosed, in parse_group()
3781 kind: ast::ErrorKind::GroupUnclosed, in parse_group()
3788 kind: ast::ErrorKind::FlagUnrecognized, in parse_group()
3795 kind: ast::ErrorKind::GroupNameUnexpectedEof, in parse_group()
3802 kind: ast::ErrorKind::GroupUnclosed, in parse_group()
3809 kind: ast::ErrorKind::GroupUnclosed, in parse_group()
3816 kind: ast::ErrorKind::GroupUnopened, in parse_group()
3823 kind: ast::ErrorKind::GroupUnopened, in parse_group()
3898 kind: ast::ErrorKind::GroupNameUnexpectedEof, in parse_capture_name()
3905 kind: ast::ErrorKind::GroupNameEmpty, in parse_capture_name()
3912 kind: ast::ErrorKind::GroupNameUnexpectedEof, in parse_capture_name()
3919 kind: ast::ErrorKind::GroupNameUnexpectedEof, in parse_capture_name()
3926 kind: ast::ErrorKind::GroupNameInvalid, in parse_capture_name()
3933 kind: ast::ErrorKind::GroupNameInvalid, in parse_capture_name()
3940 kind: ast::ErrorKind::GroupNameInvalid, in parse_capture_name()
3947 kind: ast::ErrorKind::GroupNameDuplicate { in parse_capture_name()
4063 kind: ast::ErrorKind::FlagUnexpectedEof, in parse_flags()
4070 kind: ast::ErrorKind::FlagUnrecognized, in parse_flags()
4077 kind: ast::ErrorKind::FlagDuplicate { original: span(0..1) }, in parse_flags()
4084 kind: ast::ErrorKind::FlagRepeatedNegation { in parse_flags()
4093 kind: ast::ErrorKind::FlagDanglingNegation, in parse_flags()
4100 kind: ast::ErrorKind::FlagDanglingNegation, in parse_flags()
4107 kind: ast::ErrorKind::FlagDanglingNegation, in parse_flags()
4125 kind: ast::ErrorKind::FlagUnrecognized, in parse_flag()
4132 kind: ast::ErrorKind::FlagUnrecognized, in parse_flag()
4245 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_escape()
4252 kind: ast::ErrorKind::EscapeUnrecognized, in parse_escape()
4263 kind: ast::ErrorKind::UnsupportedBackreference, in parse_unsupported_backreference()
4270 kind: ast::ErrorKind::UnsupportedBackreference, in parse_unsupported_backreference()
4345 kind: ast::ErrorKind::EscapeUnrecognized, in parse_octal()
4368 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_two()
4375 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_two()
4382 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_two()
4411 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_four()
4418 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_four()
4425 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_four()
4432 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_four()
4439 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_four()
4446 kind: ast::ErrorKind::EscapeHexInvalid, in parse_hex_four()
4475 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_eight()
4482 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4489 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4496 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4503 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4510 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4517 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4524 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4531 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_eight()
4587 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_brace()
4594 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_brace()
4601 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_hex_brace()
4608 kind: ast::ErrorKind::EscapeHexEmpty, in parse_hex_brace()
4615 kind: ast::ErrorKind::EscapeHexInvalidDigit, in parse_hex_brace()
4622 kind: ast::ErrorKind::EscapeHexInvalid, in parse_hex_brace()
4629 kind: ast::ErrorKind::EscapeHexInvalid, in parse_hex_brace()
4636 kind: ast::ErrorKind::EscapeHexInvalid, in parse_hex_brace()
4649 TestError { span: span(0..0), kind: ast::ErrorKind::DecimalEmpty } in parse_decimal()
4653 TestError { span: span(0..0), kind: ast::ErrorKind::DecimalEmpty } in parse_decimal()
4659 kind: ast::ErrorKind::DecimalInvalid, in parse_decimal()
5189 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class()
5196 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class()
5203 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class()
5210 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class()
5217 kind: ast::ErrorKind::ClassEscapeInvalid, in parse_set_class()
5224 kind: ast::ErrorKind::ClassRangeLiteral, in parse_set_class()
5231 kind: ast::ErrorKind::ClassRangeLiteral, in parse_set_class()
5238 kind: ast::ErrorKind::ClassRangeInvalid, in parse_set_class()
5246 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class()
5253 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class()
5486 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
5495 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
5502 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
5509 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
5516 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
5523 kind: ast::ErrorKind::ClassUnclosed, in parse_set_class_open()
5701 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_unicode_class()
5708 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_unicode_class()
5715 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_unicode_class()
5722 kind: ast::ErrorKind::EscapeUnexpectedEof, in parse_unicode_class()
5766 kind: ast::ErrorKind::UnicodeClassInvalid, in parse_unicode_class()
5773 kind: ast::ErrorKind::UnicodeClassInvalid, in parse_unicode_class()