/third_party/cef/tools/yapf/yapf/yapflib/ |
D | line_joiner.py | 14 """Join unwrapped lines together. 16 Determine how many lines can be joined into one line. For instance, we could 28 1. The lines should have been joined in the original source. 29 2. The joined lines must not go over the column boundary if placed on the same 34 follows that there can only be at most two lines to join. 42 def CanMergeMultipleLines(lines, last_was_merged=False): argument 43 """Determine if multiple lines can be joined into one. 46 lines: (list of UnwrappedLine) This is a splice of UnwrappedLines from the 51 True if two consecutive lines can be joined together. In reality, this will 52 only happen if two consecutive lines can be joined, due to the style guide. [all …]
|
D | yapf_api.py | 26 lines: (list of tuples of integers) A list of tuples of lines, [start, end], 27 that we want to format. The lines are 1-based indexed. It can be used by 56 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) [all …]
|
/third_party/flutter/flutter/packages/flutter_test/test/ |
D | test_async_utils_test.dart | 46 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/python/Lib/idlelib/ |
D | format.py | 45 If text is selected, format_paragraph_event will start breaking lines 49 cursor location to determine the paragraph (lines of text surrounded 50 by blank lines) and formats it. 122 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] [all …]
|
/third_party/python/Tools/msi/ |
D | csv_to_wxs.py | 64 lines = [ 69 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent)) 71 …lines.append(' <Directory Id="{}_{}" Name="{}" />'.format(dir_parent, make_id(dir_name)… 72 lines.append(' </DirectoryRef>') 74 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent)) 75 …lines.append(' <Directory Id="{}___pycache__" Name="__pycache__" />'.format(dir_parent)) 76 lines.append(' </DirectoryRef>') 77 lines.append(' </Fragment>') 80 lines.extend([ 85 …lines.append(' <Component Id="{}" Directory="{}" Guid="*">'.format(make_id(target), mak… [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/base/ |
D | logger_test.dart | 105 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/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/ |
D | CppMetadataGeneratorTest.java | 66 Iterator<String> lines = toLines(writer.toString()).iterator(); in outputHeaderFile() local 67 // Sanity check that at least some of the expected lines are present. in outputHeaderFile() 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() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | ModuleWithExportedAndNonExportedImportAlias.types | 38 import Lines = B; 39 >Lines : typeof Lines 40 >B : typeof Lines 52 export var Unit: Lines.Line = new Lines.Line(Origin, { x: 1, y: 0 }); 53 >Unit : Lines.Line 54 >Lines : any 55 >new Lines.Line(Origin, { x: 1, y: 0 }) : Lines.Line 56 >Lines.Line : typeof Lines.Line 57 >Lines : typeof Lines 58 >Line : typeof Lines.Line [all …]
|
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/ |
D | cdoc.py | 17 // and continues with lines beginning by ``//`` followed by either a space, 28 // // <tab>which needs multiple lines> 36 // the function it documents. This function can span multiple lines and 53 class Lines: class 54 def __init__(self, lines): argument 57 self.lines = lines 62 # type: () -> Lines 72 self.last = next(self.lines).rstrip() 84 def readline_multi(lines, line): argument 85 # type: (Lines, str) -> str [all …]
|
/third_party/vk-gl-cts/android/cts/master/vk-master-2021-03-01/ |
D | rasterization.txt | 57 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_00 58 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_25 59 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_50 60 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_75 61 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.1_00 62 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.2_00 63 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.4_00 64 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.min 65 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.max 66 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.degenerate.0_00 [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/testlists/vk-default/ |
D | rasterization.txt | 13 dEQP-VK.rasterization.primitives.no_stipple.lines 61 dEQP-VK.rasterization.primitives.static_stipple.lines 77 dEQP-VK.rasterization.primitives.dynamic_stipple.lines 176 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_00 177 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_25 178 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_50 179 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_75 180 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.1_00 181 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.2_00 182 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.4_00 [all …]
|
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/ |
D | lines-between-class-members.md | 1 # 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/skia/third_party/externals/harfbuzz/test/shape/ |
D | hb_test_tools.py | 79 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/harfbuzz/test/shaping/ |
D | hb_test_tools.py | 79 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/typescript/src/testRunner/unittests/tsserver/ |
D | versionCache.ts | 33 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); 49 it("handles empty lines array", () => { 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, ""); [all …]
|
/third_party/vk-gl-cts/android/cts/master/vk-master/ |
D | rasterization.txt | 13 dEQP-VK.rasterization.primitives.no_stipple.lines 61 dEQP-VK.rasterization.primitives.static_stipple.lines 77 dEQP-VK.rasterization.primitives.dynamic_stipple.lines 176 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_00 177 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_25 178 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_50 179 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_75 180 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.1_00 181 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.2_00 182 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.4_00 [all …]
|
/third_party/vk-gl-cts/external/vulkancts/mustpass/master/vk-default/ |
D | rasterization.txt | 13 dEQP-VK.rasterization.primitives.no_stipple.lines 61 dEQP-VK.rasterization.primitives.static_stipple.lines 77 dEQP-VK.rasterization.primitives.dynamic_stipple.lines 176 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_00 177 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_25 178 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_50 179 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.0_75 180 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.1_00 181 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.2_00 182 dEQP-VK.rasterization.conservative.overestimate.samples_1.lines.normal.4_00 [all …]
|
/third_party/gettext/gettext-tools/tests/ |
D | msgmerge-27 | 13 msgid "This is a long paragraph that gets wrapped into several lines because it is so long." 17 msgid "This is a long paragraph that does not get wrapped into several lines because it is marked a… 20 msgid "This is another long paragraph that gets wrapped into several lines because it is so long." 24 msgid "This is another long paragraph that does not get wrapped into several lines because it is ma… 41 msgid "This is a long paragraph that gets wrapped into several lines because it is so long." 45 msgid "This is a long paragraph that does not get wrapped into several lines because it is marked a… 68 "This is a long paragraph that gets wrapped into several lines because it is " 75 msgid "This is a long paragraph that does not get wrapped into several lines because it is marked a… 79 #~ "This is another long paragraph that gets wrapped into several lines " 86 #~ msgid "This is another long paragraph that does not get wrapped into several lines because it is… [all …]
|
/third_party/cef/tools/yapf/yapf/ |
D | __init__.py | 17 Python code. It looks at the program as a series of "unwrappable lines" --- 18 i.e., lines which, if there were no column limit, we would place all tokens on 84 '--lines', 88 help='range of lines to reformat, one-based') 140 if args.lines and len(args.files) > 1: 141 parser.error('cannot use -l/--lines with more than one file') 143 lines = _GetLines(args.lines) if args.lines is not None else None 170 lines=lines, 182 lines, 193 lines, argument [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/test/shaping/ |
D | hb_test_tools.py | 157 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/skia/third_party/externals/tint/src/writer/ |
D | text_generator.cc | 78 lines.emplace_back(Line{current_indent, line}); in Append() 84 if (before >= lines.size()) { in Insert() 87 << "TextBuffer::Insert() called with before >= lines.size()\n" in Insert() 89 << " lines.size(): " << lines.size(); in Insert() 92 lines.insert(lines.begin() + before, Line{indent, line}); in Insert() 96 for (auto& line : tb.lines) { in Append() 98 lines.emplace_back(Line{current_indent + line.indent, line.content}); in Append() 105 if (before >= lines.size()) { in Insert() 108 << "TextBuffer::Insert() called with before >= lines.size()\n" in Insert() 110 << " lines.size(): " << lines.size(); in Insert() [all …]
|
/third_party/boost/libs/histogram/tools/ |
D | add_boilerplate.py | 38 lines = content.split("\n") variable 39 for end, line in enumerate(lines): 43 for start in range(end, len(lines)): 44 if lines[start] != "": 46 … lines = 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/parse5/test/utils/ |
D | generate-location-info-parser-tests.js | 29 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/node/deps/npm/lib/ |
D | help-search.js | 58 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/node/tools/ |
D | license2rtf.js | 18 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]; 37 * This filter consumes lines and emits paragraph objects. 65 lines: [] property 76 if (this.paragraph.lines.length || this.paragraph.li) { 116 // Detect separator "lines" within a block. These mark a paragraph break 159 this.paragraph.lines.push(line); 166 * The lines within the paragraph are unwrapped where appropriate. It also [all …]
|