Home
last modified time | relevance | path

Searched refs:previousNode (Results 1 – 9 of 9) sorted by relevance

/third_party/node/tools/doc/
Dhtml.mjs237 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/
Demitter.ts4839 …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/
DsmartIndenter.ts420 const previousNode = parent.arguments[currentIndex - 1]; constant
421 … const lineOfPreviousNode = getLineAndCharacterOfPosition(sourceFile, previousNode.getEnd()).line;
/third_party/node/test/fixtures/wpt/interfaces/
Ddom.idl522 Node? previousNode();
539 Node? previousNode();
/third_party/typescript/tests/lib/
Dlib.d.ts12055 previousNode(): Node; method
14792 previousNode(): Node; method
/third_party/typescript/src/lib/
Ddom.generated.d.ts10191 previousNode(): Node | null; method
14454 previousNode(): Node | null; method
/third_party/typescript/lib/
Dlib.dom.d.ts10211 previousNode(): Node | null; method
14474 previousNode(): Node | null; method
Dtsc.js98750 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 …]
DtypingsInstaller.js119164 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 …]