Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 2621) sorted by relevance

12345678910>>...105

/third_party/cef/tools/yapf/yapf/yapflib/
Dline_joiner.py42 def CanMergeMultipleLines(lines, last_was_merged=False): argument
55 indent_amt = lines[0].depth * style.Get('INDENT_WIDTH')
56 if len(lines) == 1 or indent_amt > style.Get('COLUMN_LIMIT'):
59 if (len(lines) >= 3 and lines[2].depth >= lines[1].depth and
60 lines[0].depth != lines[2].depth):
67 if lines[0].first.value in _CLASS_OR_FUNC:
72 if lines[0].last.total_length < limit:
73 limit -= lines[0].last.total_length
75 if lines[0].first.value == 'if':
76 return _CanMergeLineIntoIfStatement(lines, limit)
[all …]
Dyapf_api.py56 lines=None, argument
88 lines=lines,
92 lines = reformatted_source.rstrip('\n').split('\n')
93 reformatted_source = newline.join(line for line in lines) + newline
106 lines=None, argument
139 _MarkLinesToFormat(uwlines, lines)
193 lines = fd.readlines()
195 line_ending = file_resources.LineEnding(lines)
196 source = '\n'.join(line.rstrip('\r\n') for line in lines) + '\n'
208 def _MarkLinesToFormat(uwlines, lines): argument
[all …]
/third_party/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/
DCppMetadataGeneratorTest.java66 Iterator<String> lines = toLines(writer.toString()).iterator(); in outputHeaderFile() local
68 assertTrue(consumeUntil(" * Copyright (C) 2011 The Libphonenumber Authors", lines)); in outputHeaderFile()
69 assertTrue(consumeUntil("#ifndef I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
70 assertTrue(consumeUntil("#define I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
71 assertTrue(consumeUntil("namespace i18n {", lines)); in outputHeaderFile()
72 assertTrue(consumeUntil("namespace phonenumbers {", lines)); in outputHeaderFile()
73 assertTrue(consumeUntil("int metadata_size();", lines)); in outputHeaderFile()
74 assertTrue(consumeUntil("const void* metadata_get();", lines)); in outputHeaderFile()
75 assertTrue(consumeUntil("#endif // I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
85 Iterator<String> lines = toLines(writer.toString()).iterator(); in outputSourceFile() local
[all …]
/third_party/python/Tools/msi/
Dcsv_to_wxs.py64 lines = [
69 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent))
71lines.append(' <Directory Id="{}_{}" Name="{}" />'.format(dir_parent, make_id(dir_name)…
72 lines.append(' </DirectoryRef>')
74 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent))
75lines.append(' <Directory Id="{}___pycache__" Name="__pycache__" />'.format(dir_parent))
76 lines.append(' </DirectoryRef>')
77 lines.append(' </Fragment>')
80 lines.extend([
85lines.append(' <Component Id="{}" Directory="{}" Guid="*">'.format(make_id(target), mak…
[all …]
/third_party/python/Lib/idlelib/
Dformat.py122 lines = data.split("\n")
124 n = len(lines)
125 while i < n and is_all_white(lines[i]):
129 indent1 = get_indent(lines[i])
130 if i+1 < n and not is_all_white(lines[i+1]):
131 indent2 = get_indent(lines[i+1])
134 new = lines[:i]
136 while i < n and not is_all_white(lines[i]):
138 words = re.split(r"(\s+)", lines[i])
153 new.extend(lines[i:])
[all …]
/third_party/node/tools/
Dlicense2rtf.js18 const lines = (this.buffer + data).split(/\r\n|\n\r|\n|\r/);
19 for (let i = 0; i < lines.length - 1; i++) {
20 this.emit('data', lines[i]);
22 this.buffer = lines[lines.length - 1];
65 lines: [] property
76 if (this.paragraph.lines.length || this.paragraph.li) {
159 this.paragraph.lines.push(line);
176 const lines = paragraph.lines;
180 for (i = 0; i < lines.length - 1; i++) {
181 const line = lines[i];
[all …]
/third_party/flutter/skia/infra/bots/buildstats/
Dbuildstats_flutter.py45 lines = subprocess.check_output([bloaty_path, stripped_file,
49 grand_total = print_skia_lines_file_symbol(lines)
52 lines = subprocess.check_output([bloaty_path, stripped_file,
56 print_skia_lines_file_symbol(lines)
60 lines = subprocess.check_output([bloaty_path, stripped_file,
64 print_skia_lines_symbol_file(lines)
68 lines = subprocess.check_output([bloaty_path, stripped_file,
72 print_skia_lines_symbol_file(lines)
99 def print_skia_lines_file_symbol(lines): argument
100 lines = lines.split('\n')
[all …]
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/
Dcdoc.py54 def __init__(self, lines): argument
57 self.lines = lines
72 self.last = next(self.lines).rstrip()
84 def readline_multi(lines, line): argument
88 (n, l) = next(lines)
93 lines.undo()
96 def readline_delim(lines, delim): argument
99 (lineno, line) = next(lines)
103 (n, l) = next(lines)
110 def process_block(lines): argument
[all …]
/third_party/node/test/parallel/
Dtest-repl-preview.js21 this.lines = ['']; property
31 this.lines[this.lines.length - 1] += chunkLines[0];
33 this.lines.push(...chunkLines.slice(1));
39 this.lines = ['']; property
46 if (this.lines[this.lines.length - 1].includes(PROMPT)) {
49 resolve(this.lines);
178 let lines = await runAndWait(toBeRun, repl);
184 lines = lines.map((line) => line.replace(/Error: .+?\x1B/, ''));
185 assert.strictEqual(lines.pop(), '\x1B[1G\x1B[0Jrepl > \x1B[8G');
186 assert.deepStrictEqual(lines, preview);
[all …]
Dtest-repl-top-level-await.js19 this.lines = ['']; property
26 this.lines[this.lines.length - 1] += chunkLines[0];
28 this.lines.push(...chunkLines.slice(1));
39 this.lines = ['']; property
46 if (this.lines[this.lines.length - 1].includes(PROMPT)) {
49 resolve(this.lines);
190 const lines = await runAndWait(toBeRun);
194 if (lines[0] === input)
195 lines.shift();
196 assert.deepStrictEqual(lines, [...expected, PROMPT]);
[all …]
/third_party/skia/infra/bots/buildstats/
Dbuildstats_flutter.py48 lines = subprocess.check_output([bloaty_path, stripped_file,
52 grand_total = print_skia_lines_file_symbol(lines)
55 lines = subprocess.check_output([bloaty_path, stripped_file,
59 print_skia_lines_file_symbol(lines)
63 lines = subprocess.check_output([bloaty_path, stripped_file,
67 print_skia_lines_symbol_file(lines)
71 lines = subprocess.check_output([bloaty_path, stripped_file,
75 print_skia_lines_symbol_file(lines)
101 def print_skia_lines_file_symbol(lines): argument
102 lines = lines.split('\n')
[all …]
/third_party/boost/libs/histogram/tools/
Dadd_boilerplate.py38 lines = content.split("\n") variable
39 for end, line in enumerate(lines):
43 for start in range(end, len(lines)):
44 if lines[start] != "":
46lines = lines[:end] + ["", "#ifndef " + guard_name, "#define " + guard_name, ""] + lines[start:] variable
47 while lines[-1] == "":
48 lines.pop()
49 lines += ["", "#endif // " + guard_name, ""]
50 content = "\n".join(lines)
/third_party/typescript/src/testRunner/unittests/tsserver/
DversionCache.ts33 const { lines } = server.LineIndex.linesFromText(testContent); constant
34 …assert.isTrue(lines.length > 0, "Failed to initialize test text. Expected text to have at least on…
37 lineIndex.load(lines);
83 let lines: string[]; variable
93 ({ lines, lineMap } = server.LineIndex.linesFromText(testContent));
94 …assert.isTrue(lines.length > 0, "Failed to initialize test text. Expected text to have at least on…
97 lineIndex.load(lines);
107 lines = undefined!;
116 validateEditAtPosition(lines[0].length - 1, lines[1].length, "");
120 validateEditAtPosition(lineMap[lineMap.length - 2], lines[lines.length - 1].length, "");
[all …]
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/base/
Dlogger_test.dart105 List<String> lines = outputStdout();
106 expect(lines[0], startsWith(
112 expect(lines[0].endsWith('\n'), isFalse);
113 expect(lines.length, equals(1));
115 lines = outputStdout();
116 expect(lines[0], endsWith('\b \b'));
117 expect(lines.length, equals(1));
271 List<String> lines = outputStdout();
272 expect(lines[0], startsWith(platform.isWindows
275 expect(lines.length, equals(1));
[all …]
/third_party/harfbuzz/test/shaping/
Dhb_test_tools.py79 def colorize_lines (self, lines): argument
80 lines = (l if l else '' for l in lines)
81 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
109 lines = [None, None]
115 if lines[i]:
117 for line in self.colorize_lines (lines):
119 lines = [None, None]
120 lines[i] = l[1:]
121 if (all (lines)):
123 for line in self.colorize_lines (lines):
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/shape/
Dhb_test_tools.py79 def colorize_lines (self, lines): argument
80 lines = (l if l else '' for l in lines)
81 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
109 lines = [None, None]
115 if lines[i]:
117 for line in self.colorize_lines (lines):
119 lines = [None, None]
120 lines[i] = l[1:]
121 if (all (lines)):
123 for line in self.colorize_lines (lines):
[all …]
/third_party/flutter/flutter/packages/flutter_test/test/
Dtest_async_utils_test.dart46 final List<String> lines = e.message.split('\n');
47 real_test.expect(lines[0], 'Guarded function conflict.');
48 real_test.expect(lines[1], 'You must use "await" with all Future-returning test APIs.');
49 …real_test.expect(lines[2], matches(r'The guarded method "testGuard1" from class TestAPI was called…
50 …real_test.expect(lines[3], matches(r'Then, the "testGuard2" method \(also from class TestAPI\) was…
51 …real_test.expect(lines[4], 'The first method (TestAPI.testGuard1) had not yet finished executing a…
52 real_test.expect(lines[5], '');
53 …real_test.expect(lines[6], 'When the first method (TestAPI.testGuard1) was called, this was the st…
54 real_test.expect(lines.length, greaterThan(6));
68 final List<String> lines = e.message.split('\n');
[all …]
/third_party/node/deps/npm/lib/
Dhelp-search.js58 var lines = data.split(/\n+/)
63 l = lines.length
65 var line = lines[i]
66 var nextLine = lines[i + 1]
92 lines[i] = null
96 lines = lines.reduce(function (l, r) {
101 if (lines[lines.length - 1] === null) lines.pop()
102 if (lines[0] === null) lines.shift()
107 lines.forEach(function (line) {
126 lines: lines, property
[all …]
/third_party/alsa-utils/alsamixer/
Dtextbox.c37 static void create_text_box(const char *const *lines, unsigned int count,
42 const char *lines[2]; in show_error() local
45 lines[0] = msg; in show_error()
48 lines[1] = strerror(err); in show_error()
51 create_text_box(lines, count, _("Error"), attrs.errormsg); in show_error()
56 const char *lines[2]; in show_alsa_error() local
59 lines[0] = msg; in show_alsa_error()
62 lines[1] = snd_strerror(err); in show_alsa_error()
65 create_text_box(lines, count, _("Error"), attrs.errormsg); in show_alsa_error()
74 const char **lines; in show_textfile() local
[all …]
/third_party/googletest/googlemock/scripts/generator/cpp/
Dgmock_class.py147 lines = []
158 lines.extend(['namespace %s {' % n for n in class_node.namespace]) # }
159 lines.append('')
171 lines.append('template <' + ', '.join(template_decls) + '>')
175 lines.append('class Mock%s : public %s {' # }
177 lines.append('%spublic:' % (' ' * (_INDENT // 2)))
180 _GenerateMethods(lines, source, class_node)
183 if lines:
185 if len(lines) == 2:
186 del lines[-1]
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/test/shaping/
Dhb_test_tools.py157 def colorize_lines (self, lines): argument
158 lines = (l if l else '' for l in lines)
159 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
187 lines = [None, None]
193 if lines[i]:
195 for line in self.colorize_lines (lines):
197 lines = [None, None]
198 lines[i] = l[1:]
199 if (all (lines)):
201 for line in self.colorize_lines (lines):
[all …]
/third_party/python/Doc/tools/
Drstlint.py68 def check_syntax(fn, lines): argument
70 code = ''.join(lines)
82 def check_suspicious_constructs(fn, lines): argument
85 for lno, line in enumerate(lines):
97 def check_whitespace(fn, lines): argument
99 for lno, line in enumerate(lines):
109 def check_line_length(fn, lines): argument
111 for lno, line in enumerate(lines):
123 def check_leaked_markup(fn, lines): argument
127 for lno, line in enumerate(lines):
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dlines-between-class-members.md1 # Require or disallow an empty line between class members (`lines-between-class-members`)
3 This rule improves readability by enforcing lines between class members. It will not check empty li…
7 This rule extends the base [`eslint/lines-between-class-members`](https://eslint.org/docs/rules/lin…
10 …t documentation](https://eslint.org/docs/rules/lines-between-class-members) for more details on th…
17 "lines-between-class-members": "off",
18 "@typescript-eslint/lines-between-class-members": ["error"]
22 In addition to the options supported by the `lines-between-class-members` rule in ESLint core, the …
30 - `"exceptAfterOverload": true` (default) - Skip checking empty lines after overload class members
31 …- `"exceptAfterOverload": false` - **do not** skip checking empty lines after overload class membe…
33 - [See the other options allowed](https://github.com/eslint/eslint/blob/master/docs/rules/lines-bet…
[all …]
/third_party/parse5/test/utils/
Dgenerate-location-info-parser-tests.js29 function assertLocation(loc, expected, html, lines) { argument
39 actual = getSubstringByLineCol(lines, loc);
46 function assertStartTagLocation(location, serializedNode, html, lines) { argument
50 assertLocation(location.startTag, expected, html, lines);
54 function assertEndTagLocation(location, serializedNode, html, lines) { argument
58 assertLocation(location.endTag, expected, html, lines);
61 function assertAttrsLocation(location, serializedNode, html, lines) { argument
65 assertLocation(attr, expected, html, lines);
69 function assertNodeLocation(location, serializedNode, html, lines) { argument
72 assertLocation(location, expected, html, lines);
[all …]
/third_party/boost/tools/build/test/
DTestCmd.py183 def match_exact(lines=None, matches=None): argument
189 if not type(lines) is list:
190 lines = lines.split("\n")
193 if len(lines) != len(matches):
195 for i in range(len(lines)):
196 if lines[i] != matches[i]:
198 (i+1, matches[i], lines[i]))
199 if len(lines) < len(matches):
201 (len(lines), "\n- ".join(matches[len(lines):])))
202 if len(lines) > len(matches):
[all …]

12345678910>>...105