Searched refs:FullCodeCharKind (Results 1 – 5 of 5) sorted by relevance
/dports/lang/rust/rustc-1.58.1-src/src/tools/rustfmt/src/ |
H A D | comment.rs | 985 FullCodeCharKind::Normal | FullCodeCharKind::InString if b == c => {} in find_uncommented() 1021 if kind == FullCodeCharKind::Normal || kind == FullCodeCharKind::InString { in find_comment_end() 1126 impl FullCodeCharKind { implementation 1151 self == FullCodeCharKind::InString || self == FullCodeCharKind::StartString in is_string() 1362 kind: FullCodeCharKind, 1392 (FullCodeCharKind::Normal, FullCodeCharKind::InString) => { in next() 1395 (FullCodeCharKind::InString, FullCodeCharKind::Normal) => { in next() 1398 (FullCodeCharKind::InComment, FullCodeCharKind::InStringCommented) => { in next() 1401 (FullCodeCharKind::InStringCommented, FullCodeCharKind::InComment) => { in next() 1443 FullCodeCharKind::Normal | FullCodeCharKind::InString => { in next() [all …]
|
H A D | utils.rs | 12 use crate::comment::{filter_normal_code, CharClasses, FullCodeCharKind, LineClasses}; 531 if char_kind == FullCodeCharKind::InString { in remove_trailing_white_spaces() 600 let new_veto_trim_value = (kind == FullCodeCharKind::InString in trim_left_preserve_layout() 602 && kind == FullCodeCharKind::InStringCommented)) in trim_left_preserve_layout() 616 FullCodeCharKind::InStringCommented | FullCodeCharKind::EndStringCommented in trim_left_preserve_layout() 621 FullCodeCharKind::InString | FullCodeCharKind::EndString => None, in trim_left_preserve_layout() 651 pub(crate) fn indent_next_line(kind: FullCodeCharKind, _line: &str, config: &Config) -> bool { in indent_next_line() argument
|
H A D | formatting.rs | 11 use crate::comment::{CharClasses, FullCodeCharKind}; 520 fn new_line(&mut self, kind: FullCodeCharKind) { in new_line() argument 559 fn char(&mut self, c: char, kind: FullCodeCharKind) { in char() argument 583 fn should_report_error(&self, char_kind: FullCodeCharKind, error_kind: &ErrorKind) -> bool { in should_report_error() argument
|
H A D | chains.rs | 64 use crate::comment::{rewrite_comment, CharClasses, FullCodeCharKind, RichChar}; 880 '?' if kind == FullCodeCharKind::Normal => continue, in trim_tries()
|
H A D | macros.rs | 27 contains_comment, CharClasses, FindUncommented, FullCodeCharKind, LineClasses, 603 if kind != FullCodeCharKind::Normal {
|