Home
last modified time | relevance | path

Searched refs:is_comment (Results 1 – 11 of 11) sorted by relevance

/external/yapf/yapf/yapflib/
Dreformatter.py64 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 and
510 if not final_lines[index - 1].is_comment:
[all …]
Dformat_token.py132 if self.is_comment:
163 if self.is_comment:
280 def is_comment(self): member in FormatToken
333 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)=',
Dformat_decision_state.py294 not current.is_comment):
320 not current.is_comment)):
338 if (style.Get('SPLIT_BEFORE_NAMED_ASSIGNS') and not current.is_comment and
428 not current.is_comment and
434 if token.is_comment:
475 if (current.is_comment and
526 if not current.is_comment:
569 if not current.is_comment:
574 (previous.is_comment and previous.previous_token is not None and
750 (previous.is_comment and previous.previous_token is not None and
[all …]
Dunwrapped_line.py201 def is_comment(self): member in UnwrappedLine
202 return self.first.is_comment
375 if prev_token.is_comment or (prev_token.previous_token and
377 prev_token.previous_token.is_comment):
421 if cur_token.is_comment and prev_token.lineno == cur_token.lineno:
Dyapf_api.py243 if uwline.is_comment:
248 if uwline.is_comment and _EnableYAPF(uwline.first.value.strip()):
/external/grpc-grpc/src/objective-c/
Dchange-comments.py65 def is_comment(line): function
69 return not is_comment(line)
107 while (next_line(is_comment)):
/external/v8/tools/
Dobjdump-v852 def is_comment(line): function
77 if not is_comment(line):
/external/yapf/yapftests/
Dformat_token_test.py75 self.assertTrue(tok.is_comment)
/external/skia/
DPRESUBMIT.py94 def is_comment(line): function
110 if is_comment(line) or is_empty_line(line):
/external/skqp/
DPRESUBMIT.py94 def is_comment(line): function
110 if is_comment(line) or is_empty_line(line):
/external/u-boot/tools/buildman/
Dkconfiglib.py1826 def is_comment(self): member in Item