Lines Matching refs:span_range
2399 fn span_range(subject: &str, range: Range<usize>) -> Span { in span_range() function
2482 span: span_range(pat, (range.end - 2)..(range.end - 1)), in flag_set()
2489 span: span_range(pat, (range.start + 2)..(range.end - 2)), in flag_set()
2495 span: span_range(pat, range.clone()), in flag_set()
2497 span: span_range(pat, (range.start + 2)..(range.end - 1)), in flag_set()
2673 span_range(pat, 0..pat.len()), in parse_comments()
2676 lit_with('f', span_range(pat, 26..27)), in parse_comments()
2677 lit_with('o', span_range(pat, 27..28)), in parse_comments()
2678 lit_with('o', span_range(pat, 28..29)), in parse_comments()
2679 lit_with('b', span_range(pat, 74..75)), in parse_comments()
2680 lit_with('a', span_range(pat, 75..76)), in parse_comments()
2681 lit_with('r', span_range(pat, 76..77)), in parse_comments()
2689 span: span_range(pat, 5..26), in parse_comments()
2693 span: span_range(pat, 30..51), in parse_comments()
2697 span: span_range(pat, 53..74), in parse_comments()
2701 span: span_range(pat, 78..98), in parse_comments()
2778 span_range(pat, 0..11), in parse_ignore_whitespace()
2780 lit_with('a', span_range(pat, 0..1)), in parse_ignore_whitespace()
2781 lit_with(' ', span_range(pat, 1..2)), in parse_ignore_whitespace()
2783 span: span_range(pat, 2..9), in parse_ignore_whitespace()
2785 span: span_range(pat, 4..5), in parse_ignore_whitespace()
2787 span: span_range(pat, 4..5), in parse_ignore_whitespace()
2793 ast: Box::new(lit_with('a', span_range(pat, 6..7))), in parse_ignore_whitespace()
2795 lit_with('a', span_range(pat, 9..10)), in parse_ignore_whitespace()
2796 lit_with(' ', span_range(pat, 10..11)), in parse_ignore_whitespace()
2806 span_range(pat, 0..pat.len()), in parse_ignore_whitespace()
2810 span: span_range(pat, 4..pat.len()), in parse_ignore_whitespace()
2812 span: span_range(pat, 9..12), in parse_ignore_whitespace()
2816 ast: Box::new(lit_with('a', span_range(pat, 14..15))), in parse_ignore_whitespace()
2825 span_range(pat, 0..pat.len()), in parse_ignore_whitespace()
2829 span: span_range(pat, 4..pat.len()), in parse_ignore_whitespace()
2831 ast: Box::new(lit_with('a', span_range(pat, 7..8))), in parse_ignore_whitespace()
2840 span_range(pat, 0..pat.len()), in parse_ignore_whitespace()
2844 span: span_range(pat, 4..pat.len()), in parse_ignore_whitespace()
2846 span: span_range(pat, 8..8), in parse_ignore_whitespace()
2849 ast: Box::new(lit_with('a', span_range(pat, 11..12))), in parse_ignore_whitespace()
2858 span_range(pat, 0..pat.len()), in parse_ignore_whitespace()
2877 span_range(pat, 0..pat.len()), in parse_ignore_whitespace()
2881 span: span_range(pat, 4..6), in parse_ignore_whitespace()
2895 span: span_range(pat, 0..2), in parse_ignore_whitespace()
2907 span_range(pat, 0..3), in parse_newlines()
2909 Ast::Dot(span_range(pat, 0..1)), in parse_newlines()
2910 lit_with('\n', span_range(pat, 1..2)), in parse_newlines()
2911 Ast::Dot(span_range(pat, 2..3)), in parse_newlines()
2920 span_range(pat, 0..pat.len()), in parse_newlines()
4131 span: span_range("☃", 0..3), in parse_flag()
4177 span: span_range("☃", 0..3), in parse_primitive_non_escape()
5116 span: span_range(pat, 0..9), in parse_set_class()
5119 span: span_range(pat, 1..8), in parse_set_class()
5121 span: span_range(pat, 1..4), in parse_set_class()
5126 span: span_range(pat, 5..8), in parse_set_class()