Lines Matching refs:span
27 /// span in an error is a valid range into this string.
29 /// The span of this error.
30 span: Span,
41 /// Every span reported by this error is reported in terms of this string.
46 /// Return the span at which this error occurred.
47 pub fn span(&self) -> &Span {
48 &self.span
51 /// Return an auxiliary span. This span exists only for some errors that
55 /// auxiliary span will be set to the initial occurrence.
139 /// The span of this error corresponds to the unclosed parenthesis.
320 /// All span positions are absolute byte offsets that can be used on the
350 /// A position encodes one half of a span, and include the byte offset, line
386 /// Create a new span with the given positions.
391 /// Create a new span using the given position as the start and end.
396 /// Create a new span by replacing the starting the position with the one
402 /// Create a new span by replacing the ending the position with the one
408 /// Returns true if and only if this span occurs on a single line.
413 /// Returns true if and only if this span is empty. That is, it points to
438 /// comment contains a span of precisely where it occurred in the original
448 /// A comment from a regular expression with an associated span.
454 /// The span of this comment, including the beginning `#` and ending `\n`.
455 pub span: Span,
494 /// Return the span of this abstract syntax tree.
495 pub fn span(&self) -> &Span {
497 Ast::Empty(ref span) => span,
498 Ast::Flags(ref x) => &x.span,
499 Ast::Literal(ref x) => &x.span,
500 Ast::Dot(ref span) => span,
501 Ast::Assertion(ref x) => &x.span,
502 Ast::Class(ref x) => x.span(),
503 Ast::Repetition(ref x) => &x.span,
504 Ast::Group(ref x) => &x.span,
505 Ast::Alternation(ref x) => &x.span,
506 Ast::Concat(ref x) => &x.span,
554 /// The span of this alternation.
555 pub span: Span,
568 0 => Ast::Empty(self.span),
578 /// The span of this concatenation.
579 pub span: Span,
592 0 => Ast::Empty(self.span),
606 /// The span of this literal.
607 pub span: Span,
718 /// Return the span of this character class.
719 pub fn span(&self) -> &Span {
721 Class::Perl(ref x) => &x.span,
722 Class::Unicode(ref x) => &x.span,
723 Class::Bracketed(ref x) => &x.span,
731 /// The span of this class.
732 pub span: Span,
754 /// The span of this class.
755 pub span: Span,
829 /// The span of this class.
830 pub span: Span,
905 /// The span of this class.
906 pub span: Span,
936 /// Return the span of this character class set.
937 pub fn span(&self) -> &Span {
939 ClassSet::Item(ref x) => x.span(),
940 ClassSet::BinaryOp(ref x) => &x.span,
981 /// Return the span of this character class set item.
982 pub fn span(&self) -> &Span {
984 ClassSetItem::Empty(ref span) => span,
985 ClassSetItem::Literal(ref x) => &x.span,
986 ClassSetItem::Range(ref x) => &x.span,
987 ClassSetItem::Ascii(ref x) => &x.span,
988 ClassSetItem::Perl(ref x) => &x.span,
989 ClassSetItem::Unicode(ref x) => &x.span,
990 ClassSetItem::Bracketed(ref x) => &x.span,
991 ClassSetItem::Union(ref x) => &x.span,
999 /// The span of this range.
1000 pub span: Span,
1020 /// The span of the items in this operation. e.g., the `a-z0-9` in
1022 pub span: Span,
1030 /// The ending position of this union's span is updated to the ending
1031 /// position of the span of the item given. If the union is empty, then
1037 /// need to adjust the span of the union directly.
1040 self.span.start = item.span().start;
1042 self.span.end = item.span().end;
1054 0 => ClassSetItem::Empty(self.span),
1064 /// The span of this operation. e.g., the `a-z--[h-p]` in `[a-z--h-p]`.
1065 pub span: Span,
1094 /// The span of this assertion.
1095 pub span: Span,
1120 /// The span of this operation.
1121 pub span: Span,
1133 /// The span of this operator. This includes things like `+`, `*?` and
1135 pub span: Span,
1185 /// The span of this group.
1186 pub span: Span,
1240 /// The span of this capture name.
1241 pub span: Span,
1251 /// The span of these flags, including the grouping parentheses.
1252 pub span: Span,
1262 /// The span of this group of flags.
1263 pub span: Span,
1314 /// The span of this item.
1315 pub span: Span,
1481 let span = || Span::splat(Position::new(0, 0, 0));
1482 let mut ast = Ast::Empty(span());
1485 span: span(),