Searched refs:is_comment (Results 1 – 11 of 11) sorted by relevance
64 if uwline.first.is_comment:66 elif uwline.last.is_comment:73 if any(tok.is_comment for tok in uwline.tokens):131 if cur_tok.is_comment:140 if cur_tok.is_comment and not prev_tok.is_comment:157 if tok.is_comment and prev_token:208 if tok.is_comment and re.match(style.Get('I18N_COMMENT'), tok.value):247 not any(tok.is_comment for tok in uwline.tokens[:last_index]))501 if (not prev_uwline.disable and prev_last_token.is_comment and510 if not final_lines[index - 1].is_comment:[all …]
132 if self.is_comment:163 if self.is_comment:280 def is_comment(self): member in FormatToken333 return self.is_comment and re.match(r'#.*\bpylint:\s*(disable|enable)=',338 return self.is_comment and re.match(r'#.*\bpytype:\s*(disable|enable)=',
294 not current.is_comment):320 not current.is_comment)):338 if (style.Get('SPLIT_BEFORE_NAMED_ASSIGNS') and not current.is_comment and428 not current.is_comment and434 if token.is_comment:475 if (current.is_comment and526 if not current.is_comment:569 if not current.is_comment:574 (previous.is_comment and previous.previous_token is not None and750 (previous.is_comment and previous.previous_token is not None and[all …]
201 def is_comment(self): member in UnwrappedLine202 return self.first.is_comment375 if prev_token.is_comment or (prev_token.previous_token and377 prev_token.previous_token.is_comment):421 if cur_token.is_comment and prev_token.lineno == cur_token.lineno:
243 if uwline.is_comment:248 if uwline.is_comment and _EnableYAPF(uwline.first.value.strip()):
65 def is_comment(line): function69 return not is_comment(line)107 while (next_line(is_comment)):
52 def is_comment(line): function77 if not is_comment(line):
75 self.assertTrue(tok.is_comment)
94 def is_comment(line): function110 if is_comment(line) or is_empty_line(line):
1826 def is_comment(self): member in Item