/external/yapf/yapf/yapflib/ |
D | reformatter.py | 55 first_token = lline.first 56 _FormatFirstToken(first_token, lline.depth, prev_line, final_lines) 563 def _FormatFirstToken(first_token, indent_depth, prev_line, final_lines): argument 582 if _IsClassOrDef(first_token): 589 first_token.AddWhitespacePrefix( 590 _CalculateNumberOfNewlines(first_token, indent_depth, prev_line, 607 def _CalculateNumberOfNewlines(first_token, indent_depth, prev_line, argument 629 if first_token.newlines is not None: 630 first_token.newlines = None 633 if first_token.is_docstring: [all …]
|
D | object_state.py | 151 last_param = self.parameters[-1].first_token 165 last_param = self.parameters[-1].first_token 204 def __init__(self, first_token, last_token): argument 205 self.first_token = first_token 212 tok = self.first_token 220 return Parameter(self.first_token, self.last_token) 223 return '[first_token::%s, last_token:%s]' % (self.first_token, 233 return hash((self.first_token, self.last_token))
|
D | format_decision_state.py | 855 last_param = param_list.parameters[-1].first_token 905 if self._FitsOnLine(param_list.parameters[0].first_token, 911 current != param_list.parameters[0].first_token and
|
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/ |
D | offset_token.py | 99 first_token = offset_tokens.popleft() 101 first_token = OffsetToken(first_token.type, first_token.string, 102 (0, first_token.offset[1])) 103 offset_tokens.appendleft(first_token)
|
/external/python/cpython3/Parser/ |
D | string_parser.c | 520 Token *first_token, Token* t, Token *last_token); 539 PyObject **expr_text, expr_ty *expression, Token *first_token, in fstring_find_expr() argument 783 first_token, t, last_token); in fstring_find_expr() 808 format_spec, first_token->lineno, in fstring_find_expr() 809 first_token->col_offset, in fstring_find_expr() 855 Token *first_token, Token *t, Token *last_token) in fstring_find_literal_and_expr() argument 886 expression, first_token, t, last_token) < 0) { in fstring_find_literal_and_expr() 1036 make_str_node_and_del(Parser *p, PyObject **str, Token* first_token, Token *last_token) in make_str_node_and_del() argument 1046 const char* the_str = PyBytes_AsString(first_token->bytes); in make_str_node_and_del() 1055 return _PyAST_Constant(s, kind, first_token->lineno, first_token->col_offset, in make_str_node_and_del() [all …]
|
/external/google-fruit/extras/scripts/ |
D | analyze_template_instantiations_clang_diagnostics.py | 164 def __init__(self, first_token, node_factory): argument 165 self.first_token = first_token 169 terminal_node = TerminalAstNode(self.first_token) 172 current_line_length + len(self.first_token), 174 self.first_token == 'Type', 186 first_token = p[1] 189 p[0] = BalancedStringTerminalNodeFactory(first_token, node_factory) 290 … if isinstance(p_2, BalancedStringTerminalNodeFactory) and p_2.first_token == '*':
|
/external/libaom/tools/ |
D | gen_constrained_tokenset.py | 96 def get_quantized_spareto(p, beta, bits, first_token): argument 100 if first_token > 1: 102 qarray = quantize_probs(parray, first_token == 1, bits) 106 def main(bits=15, first_token=1): argument 109 parray = get_quantized_spareto(q / 256., beta, bits, first_token)
|
/external/perfetto/src/profiling/symbolizer/ |
D | breakpad_parser.cc | 197 bool first_token = true; in ParseIfFuncRecord() local 199 if (!first_token) { in ParseIfFuncRecord() 202 first_token = false; in ParseIfFuncRecord()
|
/external/antlr/runtime/Ruby/lib/antlr3/ |
D | streams.rb | 800 if first_token = @tokens.find { |t| t.channel == @channel } 801 @tokens.index( first_token ) 824 if first_token = @tokens.find { |t| t.channel == @channel } 825 @tokens.index( first_token )
|
/external/rust/crates/litrs/ |
D | README.md | 35 let first_token = input.into_iter().next().expect("no input"); 38 match Literal::try_from(first_token) { 61 FloatLit::try_from(first_token)
|
/external/googletest/googlemock/scripts/generator/cpp/ |
D | ast.py | 597 first_token = None 606 parameter_type = Type(first_token.start, first_token.end, 609 p = Parameter(first_token.start, end, name, 616 if not first_token: 617 first_token = s 642 first_token = None
|
/external/minijail/tools/ |
D | parser.py | 550 first_token = tokens[0] 554 'duplicate metadata key: "%s"' % key, token=first_token)
|
/external/cronet/third_party/libevent/ |
D | evdns.c | 2704 char *const first_token = strtok_r(start, delims, &strtok_state); in resolv_conf_parse_line() local 2705 if (!first_token) return; in resolv_conf_parse_line() 2707 if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) { in resolv_conf_parse_line() 2715 } else if (!strcmp(first_token, "domain") && (flags & DNS_OPTION_SEARCH)) { in resolv_conf_parse_line() 2721 } else if (!strcmp(first_token, "search") && (flags & DNS_OPTION_SEARCH)) { in resolv_conf_parse_line() 2729 } else if (!strcmp(first_token, "options")) { in resolv_conf_parse_line()
|
/external/libevent/ |
D | evdns.c | 3587 char *const first_token = strtok_r(start, delims, &strtok_state); in resolv_conf_parse_line() local 3589 if (!first_token) return; in resolv_conf_parse_line() 3591 if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) { in resolv_conf_parse_line() 3596 } else if (!strcmp(first_token, "domain") && (flags & DNS_OPTION_SEARCH)) { in resolv_conf_parse_line() 3602 } else if (!strcmp(first_token, "search") && (flags & DNS_OPTION_SEARCH)) { in resolv_conf_parse_line() 3610 } else if (!strcmp(first_token, "options")) { in resolv_conf_parse_line()
|
/external/libtextclassifier/native/annotator/ |
D | annotator.cc | 1395 const int64 first_token = std::max( in CopyCachedTokens() local 1405 tokens.reserve(last_token - first_token); in CopyCachedTokens() 1406 for (int i = first_token; i < last_token; ++i) { in CopyCachedTokens()
|