Searched refs:token_contains_comments (Results 1 – 3 of 3) sorted by relevance
121 .map_or(false, |x| trivia_util::token_contains_comments(x)) in attempt_assignment_tactics()165 if trivia_util::token_contains_comments(&equal_token) in attempt_assignment_tactics()238 let contains_comments = trivia_util::token_contains_comments(assignment.equal_token()) in format_assignment()241 .map_or(false, |x| trivia_util::token_contains_comments(x)) in format_assignment()352 .map_or(false, |x| trivia_util::token_contains_comments(x)) in format_local_assignment()355 .map_or(false, |x| trivia_util::token_contains_comments(x)) in format_local_assignment()
175 if trivia_util::token_contains_comments(punctuation) { in format_function_args()610 .map_or(false, |punc| trivia_util::token_contains_comments(punc)) in format_function_body()
896 pub fn token_contains_comments(token_ref: &TokenReference) -> bool { in token_contains_comments() function902 node.tokens().into_iter().any(token_contains_comments) in contains_comments()