Home
last modified time | relevance | path

Searched refs:first_token (Results 1 – 12 of 12) sorted by relevance

/external/yapf/yapf/yapflib/
Dreformatter.py56 first_token = uwline.first
57 _FormatFirstToken(first_token, uwline.depth, prev_uwline, final_lines)
412 def _FormatFirstToken(first_token, indent_depth, prev_uwline, final_lines): argument
427 first_token.AddWhitespacePrefix(
428 _CalculateNumberOfNewlines(first_token, indent_depth, prev_uwline,
445 def _CalculateNumberOfNewlines(first_token, indent_depth, prev_uwline, argument
466 if first_token.newlines is not None:
467 pytree_utils.SetNodeAnnotation(first_token.node,
471 if first_token.is_docstring:
485 if (not indent_depth and first_token.value in {'class', 'def', 'async'}):
[all …]
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
Doffset_token.py99 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/pegen/
Dparse_string.c518 Token *first_token, Token* t, Token *last_token);
537 PyObject **expr_text, expr_ty *expression, Token *first_token, in fstring_find_expr() argument
781 first_token, t, last_token); in fstring_find_expr()
806 format_spec, first_token->lineno, in fstring_find_expr()
807 first_token->col_offset, last_token->end_lineno, in fstring_find_expr()
852 Token *first_token, Token *t, Token *last_token) in fstring_find_literal_and_expr() argument
883 expression, first_token, t, last_token) < 0) { in fstring_find_literal_and_expr()
1033 make_str_node_and_del(Parser *p, PyObject **str, Token* first_token, Token *last_token) in make_str_node_and_del() argument
1043 const char* the_str = PyBytes_AsString(first_token->bytes); in make_str_node_and_del()
1052 return Constant(s, kind, first_token->lineno, first_token->col_offset, in make_str_node_and_del()
[all …]
/external/google-fruit/extras/scripts/
Danalyze_template_instantiations_clang_diagnostics.py164 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/libaom/tools/
Dgen_constrained_tokenset.py96 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/antlr/runtime/Ruby/lib/antlr3/
Dstreams.rb800 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/googletest/googlemock/scripts/generator/cpp/
Dast.py597 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/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangModulesDeclVendor.cpp531 bool first_token = true; in ForEachMacro() local
536 if (!first_token) { in ForEachMacro()
539 first_token = false; in ForEachMacro()
/external/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
DCPlusPlusNameParser.cpp640 clang::Token &first_token = m_tokens[range.begin_index]; in GetTextForRange() local
642 clang::SourceLocation start_loc = first_token.getLocation(); in GetTextForRange()
/external/minijail/tools/
Dparser.py513 first_token = tokens[0]
517 'duplicate metadata key: "%s"' % key, token=first_token)
/external/libevent/
Devdns.c3587 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/
Dannotator.cc1370 const int64 first_token = std::max( in CopyCachedTokens() local
1380 tokens.reserve(last_token - first_token); in CopyCachedTokens()
1381 for (int i = first_token; i < last_token; ++i) { in CopyCachedTokens()