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.ts4821 …function getSeparatingLineTerminatorCount(previousNode: Node | undefined, nextNode: Node, format: …
4823 if (previousNode === undefined || nextNode === undefined) {
4830 … else if (currentSourceFile && !nodeIsSynthesized(previousNode) && !nodeIsSynthesized(nextNode)) {
4831 … if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) {
4834 previousNode,
4844 … else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {
4845 … return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;
4851 …else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(ne…
5636 function siblingNodePositionsAreComparable(previousNode: Node, nextNode: Node) {
5637 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
DtypingsInstaller.js119014 function getSeparatingLineTerminatorCount(previousNode, nextNode, format) { argument
119016 if (previousNode === undefined || nextNode === undefined) {
119023 …else if (currentSourceFile && !ts.nodeIsSynthesized(previousNode) && !ts.nodeIsSynthesized(nextNod…
119024 … if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) {
119025 …on (includeComments) { return ts.getLinesBetweenRangeEndAndRangeStart(previousNode, nextNode, curr…
119032 … else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {
119033 … return ts.rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;
119039 …else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(ne…
119731 function siblingNodePositionsAreComparable(previousNode, nextNode) { argument
119732 if (nextNode.pos < previousNode.end) {
[all …]
Dtsc.js98618 function getSeparatingLineTerminatorCount(previousNode, nextNode, format) { argument
98620 if (previousNode === undefined || nextNode === undefined) {
98626 …else if (currentSourceFile && !ts.nodeIsSynthesized(previousNode) && !ts.nodeIsSynthesized(nextNod…
98627 … if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) {
98628 …on (includeComments) { return ts.getLinesBetweenRangeEndAndRangeStart(previousNode, nextNode, curr…
98630 … else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {
98631 … return ts.rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;
98635 …else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(ne…
99235 function siblingNodePositionsAreComparable(previousNode, nextNode) { argument
99236 if (nextNode.pos < previousNode.end) {
[all …]