Home
last modified time | relevance | path

Searched refs:first_token (Results 1 – 11 of 11) 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.py94 first_token = offset_tokens.popleft()
96 first_token = OffsetToken(first_token.type, first_token.string,
97 (0, first_token.offset[1]))
98 offset_tokens.appendleft(first_token)
/external/perf_data_converter/src/quipper/
Dperf_stat_parser.cc43 const string& first_token = tokens[0]; in ParsePerfStatOutputToProto() local
45 if (first_token.back() == ':') { in ParsePerfStatOutputToProto()
53 newline->set_event_name(first_token.substr(0, first_token.size() - 1)); in ParsePerfStatOutputToProto()
57 !SecondsStringToMillisecondsUint64(first_token, &time_ms)) { in ParsePerfStatOutputToProto()
/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)
288 … 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.py599 first_token = None
608 parameter_type = Type(first_token.start, first_token.end,
611 p = Parameter(first_token.start, end, name,
617 if not first_token:
618 first_token = s
632 first_token = None
/external/google-breakpad/src/testing/scripts/generator/cpp/
Dast.py597 first_token = None
607 parameter_type = Type(first_token.start, first_token.end,
610 p = Parameter(first_token.start, end, name,
616 if not first_token:
617 first_token = s
631 first_token = None
/external/minijail/tools/
Dparser.py500 first_token = tokens[0]
504 'duplicate metadata key: "%s"' % key, token=first_token)
/external/libevent/
Devdns.c3534 char *const first_token = strtok_r(start, delims, &strtok_state); in resolv_conf_parse_line() local
3536 if (!first_token) return; in resolv_conf_parse_line()
3538 if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) { in resolv_conf_parse_line()
3543 } else if (!strcmp(first_token, "domain") && (flags & DNS_OPTION_SEARCH)) { in resolv_conf_parse_line()
3549 } else if (!strcmp(first_token, "search") && (flags & DNS_OPTION_SEARCH)) { in resolv_conf_parse_line()
3557 } else if (!strcmp(first_token, "options")) { in resolv_conf_parse_line()
/external/libtextclassifier/annotator/
Dannotator.cc1140 const int64 first_token = std::max( in CopyCachedTokens() local
1150 tokens.reserve(last_token - first_token); in CopyCachedTokens()
1151 for (int i = first_token; i < last_token; ++i) { in CopyCachedTokens()