Home
last modified time | relevance | path

Searched refs:contains_comment (Results 1 – 11 of 11) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/src/tools/rustfmt/tests/target/configs/imports_layout/
H A Dhorizontal_vertical.rs4 use comment::{contains_comment, recover_comment_removed, rewrite_comment, FindUncommented};
H A Dmixed.rs4 use comment::{contains_comment, recover_comment_removed, rewrite_comment, FindUncommented};
/dports/lang/rust/rustc-1.58.1-src/src/tools/rustfmt/src/
H A Dtypes.rs7 use crate::comment::{combine_strs_with_missing_comments, contains_comment};
692 if contains_comment(context.snippet(before_lt_span)) { in rewrite()
711 if contains_comment(context.snippet(before_mut_span)) { in rewrite()
727 if contains_comment(context.snippet(before_ty_span)) { in rewrite()
949 let has_comments = contains_comment(context.snippet(span)); in join_bounds_inner()
956 Some(ts) => contains_comment(context.snippet(ts)), in join_bounds_inner()
H A Dcomment.rs1035 pub(crate) fn contains_comment(text: &str) -> bool { in contains_comment() function
1863 assert_eq!(contains_comment("abc"), false); in test_contains_comment()
1864 assert_eq!(contains_comment("abc // qsdf"), true); in test_contains_comment()
1865 assert_eq!(contains_comment("abc /* kqsdf"), true); in test_contains_comment()
1866 assert_eq!(contains_comment("abc \" /* */\" qsdf"), false); in test_contains_comment()
H A Ditems.rs13 combine_strs_with_missing_comments, contains_comment, is_last_comment_block,
252 if !item.body.is_empty() || contains_comment(&snippet[brace_pos..]) { in format_item()
702 if !contains_comment(&snippet[open_pos..]) in format_impl()
782 if !items.is_empty() || contains_comment(&snippet[open_pos..]) { in format_impl()
826 && !contains_comment(&snippet[open_pos..]), in is_impl_single_line()
1062 if contains_comment(snippet) { in format_trait()
1143 && !contains_comment(&snippet[open_pos..]) => in format_trait()
1166 if !items.is_empty() || contains_comment(&snippet[open_pos..]) { in format_trait()
1650 if contains_comment(context.snippet_provider.span_to_snippet(comment_span)?) => in rewrite_ty()
3261 let item_str = if contains_comment(new_str) { in rewrite_extern_crate()
H A Dattr.rs8 use crate::comment::{contains_comment, rewrite_doc_comment, CommentStyle};
344 if should_skip || contains_comment(snippet) { in rewrite()
H A Dexpr.rs12 combine_strs_with_missing_comments, contains_comment, recover_comment_removed, rewrite_comment,
1107 contains_comment(context.snippet(block.span)) in block_contains_comment()
1940 let contains_comment = contains_comment(context.snippet(between_span)); in rewrite_assign_rhs_with_comments() localVariable
1941 let shape = if contains_comment { in rewrite_assign_rhs_with_comments()
1948 if contains_comment { in rewrite_assign_rhs_with_comments()
H A Dvisitor.rs9 use crate::comment::{contains_comment, rewrite_comment, CodeCharKind, CommentCodeSlices};
275 let align_to_right = if unindent_comment && contains_comment(comment_snippet) { in close_block()
H A Dmacros.rs27 contains_comment, CharClasses, FindUncommented, FullCodeCharKind, LineClasses,
280 let has_comment = contains_comment(context.snippet(mac.span()));
/dports/lang/zig-devel/zig-0.9.0/lib/std/zig/
H A Drender.zig1696 const contains_comment = hasComment(tree, array_init.ast.lbrace, rbrace);
1699 if (!trailing_comma and !contains_comment and !contains_multiline_string) {
/dports/lang/zig/zig-0.9.0/lib/std/zig/
H A Drender.zig1696 const contains_comment = hasComment(tree, array_init.ast.lbrace, rbrace);
1699 if (!trailing_comma and !contains_comment and !contains_multiline_string) {