Home
last modified time | relevance | path

Searched refs:previous_token (Results 1 – 9 of 9) sorted by relevance

/external/yapf/yapf/yapflib/
Dunwrapped_line.py57 tok.previous_token = self._tokens[index]
108 uwline.first.previous_token = None
120 token.previous_token = self.last
222 left.previous_token and _IsIdNumberStringToken(left.previous_token)):
375 if prev_token.is_comment or (prev_token.previous_token and
377 prev_token.previous_token.is_comment):
435 previous_token = tok.previous_token
436 while previous_token:
437 if previous_token.value == ')':
439 elif previous_token.value == '}':
[all …]
Dformat_decision_state.py133 previous = current.previous_token
154 token = previous.previous_token
156 prev = token.previous_token
159 token = token.previous_token
172 previous = current.previous_token
249 pptoken = previous.previous_token
296 if previous.value == '{' and previous.previous_token:
297 opening = _GetOpeningBracket(previous.previous_token)
298 if (opening and opening.value == '(' and opening.previous_token and
299 opening.previous_token.is_name):
[all …]
Dreformatter.py124 if not prev_tok.previous_token.is_multiline_string:
125 prev_lineno = prev_tok.previous_token.lineno
178 previous_token = state.next_token.previous_token
179 previous_lineno = previous_token.lineno
181 if previous_token.is_multiline_string or previous_token.is_string:
182 previous_lineno += previous_token.value.count('\n')
184 if previous_token.is_continuation:
242 last = last.previous_token
262 if (tok.previous_token.value == ':' or
Dformat_token.py122 self.previous_token = None
183 previous = self.previous_token
188 previous = previous.previous_token
199 cur_lineno != previous.previous_token.lineno)):
Dobject_state.py53 return self.expr_token.previous_token
/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPpContext.cpp88 …preamble(0), strings(0), previous_token('\n'), parseContext(pc), includer(inclr), inComment(false), in TPpContext()
DPpScanner.cpp1064 if (previous_token == '\n') { in tokenize()
1076 previous_token = token; in tokenize()
DPpContext.h301 int previous_token; variable
/external/python/cpython3/Tools/clinic/
Dcpp.py175 previous_token, previous_condition = pop_stack()