Searched refs:previous_token (Results 1 – 9 of 9) sorted by relevance
/external/yapf/yapf/yapflib/ |
D | unwrapped_line.py | 57 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 …]
|
D | format_decision_state.py | 133 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 …]
|
D | reformatter.py | 124 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
|
D | format_token.py | 122 self.previous_token = None 183 previous = self.previous_token 188 previous = previous.previous_token 199 cur_lineno != previous.previous_token.lineno)):
|
D | object_state.py | 53 return self.expr_token.previous_token
|
/external/python/cpython3/Tools/clinic/ |
D | cpp.py | 151 previous_token, previous_condition = pop_stack() 152 self.stack.append((previous_token, negate(previous_condition))) 166 previous_token, previous_condition = pop_stack() 167 self.stack.append((previous_token, negate(previous_condition)))
|
/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/ |
D | PpContext.cpp | 88 …preamble(0), strings(0), previous_token('\n'), parseContext(pc), includer(inclr), inComment(false), in TPpContext()
|
D | PpScanner.cpp | 1146 if (previous_token == '\n') { in tokenize() 1158 previous_token = token; in tokenize()
|
D | PpContext.h | 358 int previous_token; variable
|