Home
last modified time | relevance | path

Searched refs:token_contains_comments (Results 1 – 3 of 3) sorted by relevance

/dports/devel/stylua/StyLua-0.11.0/src/formatters/
H A Dassignment.rs121 .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()
H A Dfunctions.rs175 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()
H A Dtrivia_util.rs896 pub fn token_contains_comments(token_ref: &TokenReference) -> bool { in token_contains_comments() function
902 node.tokens().into_iter().any(token_contains_comments) in contains_comments()