MCPcopy Create free account
hub / github.com/nodejs/node / getDelta

Function getDelta

test/fixtures/snapshot/typescript.js:147428–147431  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

147426 && !(node.decorators && kind === getFirstNonDecoratorTokenOfNode(node));
147427 }
147428 function getDelta(child) {
147429 // Delta value should be zero when the node explicitly prevents indentation of the child node
147430 return formatting.SmartIndenter.nodeWillIndentChild(options, node, child, sourceFile, /*indentByDefault*/ true) ? delta : 0;
147431 }
147432 }
147433 function processNode(node, contextNode, nodeStartLine, undecoratedNodeStartLine, indentation, delta) {
147434 if (!ts.rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) {

Callers 1

getDynamicIndentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected