Searched refs:is_comment (Results 1 – 7 of 7) sorted by relevance
62 if uwline.first.is_comment:64 elif uwline.last.is_comment:70 if any(tok.is_comment for tok in uwline.tokens):128 if cur_tok.is_comment:140 if tok.is_comment and prev_token:191 if tok.is_comment and re.match(style.Get('I18N_COMMENT'), tok.value):230 not any(tok.is_comment for tok in uwline.tokens[:last_index]))473 if (not prev_uwline.disable and prev_last_token.is_comment and482 if not final_lines[index - 1].is_comment:501 if first_token.is_comment:[all …]
235 not current.is_comment):253 not current.is_comment)):271 if (style.Get('SPLIT_BEFORE_NAMED_ASSIGNS') and not current.is_comment and354 if not current.is_comment:359 if token.is_comment:407 if (current.is_comment and456 if not current.is_comment:494 if not current.is_comment:500 (previous.is_comment and previous.previous_token is not None and553 (previous.is_comment and previous.previous_token is not None and[all …]
102 if self.is_comment:127 if self.is_comment:238 def is_comment(self): member in FormatToken282 return self.is_comment and re.match(r'#.*\bpylint:\s*(disable|enable)=',
176 def is_comment(self): member in UnwrappedLine177 return self.first.is_comment334 if prev_token.is_comment:378 if cur_token.is_comment and prev_token.lineno == cur_token.lineno:
248 if uwline.is_comment:253 if uwline.is_comment and _EnableYAPF(uwline.first.value.strip()):
52 def is_comment(line): function77 if not is_comment(line):
76 def is_comment(line): function92 if is_comment(line) or is_empty_line(line):