Home
last modified time | relevance | path

Searched defs:BytePos (Results 1 – 25 of 29) sorted by relevance

12

/third_party/rust/rust/src/tools/rustfmt/src/
Dsource_map.rs11 fn span_after(&self, original: Span, needle: &str) -> BytePos; in span_after()
12 fn span_after_last(&self, original: Span, needle: &str) -> BytePos; in span_after_last()
13 fn span_before(&self, original: Span, needle: &str) -> BytePos; in span_before()
14 fn span_before_last(&self, original: Span, needle: &str) -> BytePos; in span_before_last()
15 fn opt_span_after(&self, original: Span, needle: &str) -> Option<BytePos>; in opt_span_after()
16 fn opt_span_before(&self, original: Span, needle: &str) -> Option<BytePos>; in opt_span_before()
29 fn span_after(&self, original: Span, needle: &str) -> BytePos { in span_after()
39 fn span_after_last(&self, original: Span, needle: &str) -> BytePos { in span_after_last()
50 fn span_before(&self, original: Span, needle: &str) -> BytePos { in span_before()
60 fn span_before_last(&self, original: Span, needle: &str) -> BytePos { in span_before_last()
[all …]
Dmissed_spans.rs37 pub(crate) fn format_missing(&mut self, end: BytePos) { in format_missing()
53 pub(crate) fn format_missing_with_indent(&mut self, end: BytePos) { in format_missing_with_indent()
57 pub(crate) fn format_missing_no_indent(&mut self, end: BytePos) { in format_missing_no_indent()
61 fn format_missing_indent(&mut self, end: BytePos, should_indent: bool) { in format_missing_indent()
78 end: BytePos, in format_missing_inner()
Dvisitor.rs49 pub(crate) fn new(start_pos: BytePos, end_pos: BytePos, big_snippet: Lrc<String>) -> Self { in new()
63 pub(crate) fn start_pos(&self) -> BytePos { in start_pos()
67 pub(crate) fn end_pos(&self) -> BytePos { in end_pos()
966 pub(crate) fn format_separate_mod(&mut self, m: &Module<'_>, end_pos: BytePos) { in format_separate_mod()
977 pub(crate) fn skip_empty_lines(&mut self, end_pos: BytePos) { in skip_empty_lines()
Dlists.rs800 prev_span_end: BytePos, in itemize_list()
801 next_span_start: BytePos, in itemize_list()
806 F1: Fn(&T) -> BytePos, in itemize_list()
807 F2: Fn(&T) -> BytePos, in itemize_list()
Dtypes.rs100 mut span_lo: BytePos, in rewrite_path_segments()
101 span_hi: BytePos, in rewrite_path_segments()
234 span_lo: &mut BytePos, in rewrite_segment()
235 span_hi: BytePos, in rewrite_segment()
Ditems.rs555 body_lo: BytePos, in format_variant_list()
556 body_hi: BytePos, in format_variant_list()
1483 fn get_bytepos_after_visibility(vis: &ast::Visibility, default_span: Span) -> BytePos { in get_bytepos_after_visibility()
2274 pub(crate) fn span_lo_for_param(param: &ast::Param) -> BytePos { in span_lo_for_param()
2286 pub(crate) fn span_hi_for_param(context: &RewriteContext<'_>, param: &ast::Param) -> BytePos { in span_hi_for_param()
2868 span_end: Option<BytePos>, in rewrite_where_clause_rfc_style()
2869 span_end_before_where: BytePos, in rewrite_where_clause_rfc_style()
2920 span_end_before_where: BytePos, in rewrite_where_keyword()
2967 span_end: Option<BytePos>, in rewrite_bounds_on_where_clause()
3018 span_end: Option<BytePos>, in rewrite_where_clause()
[all …]
Dmatches.rs166 ) -> Vec<Option<BytePos>> { in collect_beginning_verts()
182 open_brace_pos: BytePos, in rewrite_match_arms()
Dutils.rs348 pub(crate) fn mk_sp(lo: BytePos, hi: BytePos) -> Span { in mk_sp()
/third_party/rust/rust/compiler/rustc_parse/src/lexer/
Dmod.rs48 mut start_pos: BytePos, in parse_token_trees()
110 fn mk_sp(&self, lo: BytePos, hi: BytePos) -> Span { in mk_sp()
322 from_pos: BytePos, in struct_fatal_span_char()
323 to_pos: BytePos, in struct_fatal_span_char()
334 fn lint_unicode_text_flow(&self, start: BytePos) { in lint_unicode_text_flow()
352 content_start: BytePos, in cook_doc_comment()
378 start: BytePos, in cook_lexer_literal()
379 end: BytePos, in cook_lexer_literal()
514 fn symbol_from_to(&self, start: BytePos, end: BytePos) -> Symbol { in symbol_from_to()
520 fn str_from_to(&self, start: BytePos, end: BytePos) -> &'a str { in str_from_to()
[all …]
Dunicode_chars.rs341 pos: BytePos, in check_for_substitution()
/third_party/rust/rust/compiler/rustc_span/src/
Danalyze_source_file.rs14 source_file_start_pos: BytePos, in analyze_source_file()
15 ) -> (Vec<BytePos>, Vec<MultiByteChar>, Vec<NonNarrowChar>) { in analyze_source_file()
210 output_offset: BytePos, in analyze_source_file_generic()
211 lines: &mut Vec<BytePos>, in analyze_source_file_generic()
Dcaching_source_map_view.rs32 pos: BytePos, in update()
81 pos: BytePos, in byte_pos_to_line_and_col()
82 ) -> Option<(Lrc<SourceFile>, usize, BytePos)> { in byte_pos_to_line_and_col() argument
117 ) -> Option<(Lrc<SourceFile>, usize, BytePos, usize, BytePos)> { in span_data_to_lines_and_cols() argument
Dspan_encoding.rs94 mut lo: BytePos, in new()
95 mut hi: BytePos, in new()
Dlib.rs541 pub fn lo(self) -> BytePos { in lo()
549 pub fn hi(self) -> BytePos { in hi()
613 pub fn with_root_ctxt(lo: BytePos, hi: BytePos) -> Span { in with_root_ctxt()
1094 fn new(pos: BytePos, width: usize) -> Self { in new()
1104 pub fn pos(&self) -> BytePos { in pos()
1490 start_pos: BytePos, in new()
1583 pub fn line_begin_pos(&self, pos: BytePos) -> BytePos { in line_begin_pos()
1678 pub fn line_bounds(&self, line_index: usize) -> Range<BytePos> { in line_bounds()
1709 pub fn original_relative_byte_pos(&self, pos: BytePos) -> BytePos { in original_relative_byte_pos()
1731 pub fn normalized_byte_pos(&self, offset: u32) -> BytePos { in normalized_byte_pos()
[all …]
/third_party/rust/rust/tests/ui/issues/
Dissue-14091-2.rs6 pub struct BytePos(pub u32); struct
/third_party/rust/rust/compiler/rustc_middle/src/mir/
Dspanview.rs346 mut from_pos: BytePos, in write_next_viewable_with_overlaps()
347 mut to_pos: BytePos, in write_next_viewable_with_overlaps()
352 ) -> io::Result<(BytePos, &'b [SpanViewable])> in write_next_viewable_with_overlaps()
527 fn write_coverage_gap<W>(tcx: TyCtxt<'_>, lo: BytePos, hi: BytePos, w: &mut W) -> io::Result<()> in write_coverage_gap()
652 fn trim_span(span: Span, from_pos: BytePos, to_pos: BytePos) -> Span { in trim_span()
/third_party/rust/rust/src/tools/clippy/clippy_lints/src/
Dundocumented_unsafe_blocks.rs284 comment_pos: BytePos, in expr_has_unnecessary_safety_comment()
577 ) -> Option<BytePos> { in comment_start_before_item_in_mod()
690 fn text_has_safety_comment(src: &str, line_starts: &[BytePos], offset: usize) -> Option<BytePos> { in text_has_safety_comment()
/third_party/rust/rust/compiler/rustc_query_system/src/ich/
Dimpls_syntax.rs112 fn stable_byte_pos(pos: BytePos, source_file_start: BytePos) -> u32 { in stable_byte_pos()
124 source_file_start: BytePos, in stable_non_narrow_char()
Dhcx.rs156 ) -> Option<(Lrc<SourceFile>, usize, BytePos, usize, BytePos)> { in span_data_to_lines_and_cols() argument
/third_party/rust/rust/src/tools/clippy/clippy_utils/src/
Dsource.rs18 fn into_range(self) -> Range<BytePos>; in into_range()
21 fn into_range(self) -> Range<BytePos> { in into_range()
27 fn into_range(self) -> Range<BytePos> { in into_range()
32 fn into_range(self) -> Range<BytePos> { in into_range()
102 fn first_char_in_first_line<T: LintContext>(cx: &T, span: Span) -> Option<BytePos> { in first_char_in_first_line()
Dhir_utils.rs1133 …fn f(cx: &LateContext<'_>, left: Range<BytePos>, right: Range<BytePos>, pred: impl Fn(TokenKind) -… in eq_span_tokens()
/third_party/rust/rust/compiler/rustc_lint/src/
Dunused.rs624 left_pos: Option<BytePos>, in check_unused_delims_expr()
625 right_pos: Option<BytePos>, in check_unused_delims_expr()
693 left_pos: Option<BytePos>, in emit_unused_delims_expr()
694 right_pos: Option<BytePos>, in emit_unused_delims_expr()
960 left_pos: Option<BytePos>, in check_unused_delims_expr()
961 right_pos: Option<BytePos>, in check_unused_delims_expr()
1216 left_pos: Option<BytePos>, in check_unused_delims_expr()
1217 right_pos: Option<BytePos>, in check_unused_delims_expr()
/third_party/rust/rust/compiler/rustc_mir_transform/src/coverage/
Dspans.rs135 pub fn cutoff_statements_at(&mut self, cutoff_pos: BytePos) { in cutoff_statements_at()
/third_party/rust/rust/src/tools/rustfmt/src/parse/
Dsession.rs270 pub(crate) fn byte_pos_same_line(&self, a: BytePos, b: BytePos) -> bool { in byte_pos_same_line()
/third_party/rust/rust/compiler/rustc_ast_pretty/src/pprust/
Dstate.rs74 next_pos: Option<BytePos>, in trailing_comment()
362 fn maybe_print_trailing_comment(&mut self, span: rustc_span::Span, next_pos: Option<BytePos>) { in maybe_print_trailing_comment()

12