Home
last modified time | relevance | path

Searched refs:prev_token (Results 1 – 6 of 6) sorted by relevance

/external/yapf/yapf/yapflib/
Dunwrapped_line.py68 prev_token = self.first
72 _SpaceRequiredBetween(prev_token, token)):
80 token.split_penalty += _SplitPenalty(prev_token, token)
81 token.must_break_before = _MustBreakBefore(prev_token, token)
83 token.must_break_before or _CanBreakBefore(prev_token, token))
86 prev_token = token
373 def _MustBreakBefore(prev_token, cur_token): argument
375 if prev_token.is_comment or (prev_token.previous_token and
376 prev_token.is_pseudo_paren and
377 prev_token.previous_token.is_comment):
[all …]
Dreformatter.py155 prev_token = None
157 if tok.is_comment and prev_token:
158 if tok.lineno - tok.value.count('\n') - prev_token.lineno > 1:
161 prev_token = tok
593 def _NoBlankLinesBeforeCurrentToken(text, cur_token, prev_token): argument
616 num_newlines = text.count('\n') if not prev_token.is_comment else 0
617 return prev_token.lineno + num_newlines == cur_token_lineno - 1
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
Doffset_token.py69 for prev_token, next_token in _Pairwise(tokenize_tokens):
71 if not prev_token:
74 erow, ecol = prev_token[3]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_build.c715 struct tgsi_token *prev_token, in tgsi_build_instruction_label() argument
748 struct tgsi_token *prev_token, in tgsi_build_instruction_texture() argument
783 struct tgsi_token *prev_token, in tgsi_build_instruction_memory() argument
818 struct tgsi_token *prev_token, in tgsi_build_texture_offset() argument
1068 struct tgsi_token *prev_token; in tgsi_build_full_instruction() local
1081 prev_token = (struct tgsi_token *) instruction; in tgsi_build_full_instruction()
1094 prev_token, in tgsi_build_full_instruction()
1097 prev_token = (struct tgsi_token *) instruction_label; in tgsi_build_full_instruction()
1113 prev_token, in tgsi_build_full_instruction()
1116 prev_token = (struct tgsi_token *) instruction_texture; in tgsi_build_full_instruction()
[all …]
/external/googletest/googletest/scripts/
Dpump.py318 prev_token = None
321 prev_token = MakeToken(lines, pos, found.start, 'code')
322 prev_token_rstripped = RStripNewLineFromToken(prev_token)
363 if prev_token:
364 yield prev_token
376 if prev_token:
377 yield prev_token
/external/google-breakpad/src/testing/gtest/scripts/
Dpump.py318 prev_token = None
321 prev_token = MakeToken(lines, pos, found.start, 'code')
322 prev_token_rstripped = RStripNewLineFromToken(prev_token)
363 if prev_token:
364 yield prev_token
376 if prev_token:
377 yield prev_token