Searched refs:previousNode (Results 1 – 9 of 9) sorted by relevance
/third_party/node/tools/doc/ |
D | html.mjs | 237 const previousNode = parent.children[index - 1] || {}; 242 if (!isJSFlavorSnippet(previousNode) && 248 } else if (isJSFlavorSnippet(previousNode) && 249 previousNode.lang !== node.lang) { 250 … const actualCharCount = Math.max(charCountFirstTwoLines, previousNode.charCountFirstTwoLines); 257 previousNode.value + 262 previousNode.value = ''; 263 previousNode.lang = null;
|
/third_party/typescript/src/compiler/ |
D | emitter.ts | 4839 …function getSeparatingLineTerminatorCount(previousNode: Node | undefined, nextNode: Node, format: … 4841 if (previousNode === undefined || nextNode === undefined) { 4848 … else if (currentSourceFile && !nodeIsSynthesized(previousNode) && !nodeIsSynthesized(nextNode)) { 4849 … if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) { 4852 previousNode, 4862 … else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) { 4863 … return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1; 4869 …else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(ne… 5680 function siblingNodePositionsAreComparable(previousNode: Node, nextNode: Node) { 5681 if (nextNode.pos < previousNode.end) { [all …]
|
/third_party/typescript/src/services/formatting/ |
D | smartIndenter.ts | 420 const previousNode = parent.arguments[currentIndex - 1]; constant 421 … const lineOfPreviousNode = getLineAndCharacterOfPosition(sourceFile, previousNode.getEnd()).line;
|
/third_party/node/test/fixtures/wpt/interfaces/ |
D | dom.idl | 522 Node? previousNode(); 539 Node? previousNode();
|
/third_party/typescript/tests/lib/ |
D | lib.d.ts | 12055 previousNode(): Node; method 14792 previousNode(): Node; method
|
/third_party/typescript/src/lib/ |
D | dom.generated.d.ts | 10191 previousNode(): Node | null; method 14454 previousNode(): Node | null; method
|
/third_party/typescript/lib/ |
D | lib.dom.d.ts | 10211 previousNode(): Node | null; method 14474 previousNode(): Node | null; method
|
D | tsc.js | 98750 function getSeparatingLineTerminatorCount(previousNode, nextNode, format) { argument 98752 if (previousNode === undefined || nextNode === undefined) { 98758 …else if (currentSourceFile && !ts.nodeIsSynthesized(previousNode) && !ts.nodeIsSynthesized(nextNod… 98759 … if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) { 98760 …on (includeComments) { return ts.getLinesBetweenRangeEndAndRangeStart(previousNode, nextNode, curr… 98762 … else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) { 98763 … return ts.rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1; 98767 …else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(ne… 99393 function siblingNodePositionsAreComparable(previousNode, nextNode) { argument 99394 if (nextNode.pos < previousNode.end) { [all …]
|
D | typingsInstaller.js | 119164 function getSeparatingLineTerminatorCount(previousNode, nextNode, format) { argument 119166 if (previousNode === undefined || nextNode === undefined) { 119173 …else if (currentSourceFile && !ts.nodeIsSynthesized(previousNode) && !ts.nodeIsSynthesized(nextNod… 119174 … if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) { 119175 …on (includeComments) { return ts.getLinesBetweenRangeEndAndRangeStart(previousNode, nextNode, curr… 119182 … else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) { 119183 … return ts.rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1; 119189 …else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(ne… 119907 function siblingNodePositionsAreComparable(previousNode, nextNode) { argument 119908 if (nextNode.pos < previousNode.end) { [all …]
|