MCPcopy Create free account
hub / github.com/microsoft/typescript-go / getDynamicIndentation

Method getDynamicIndentation

internal/format/span.go:1243–1252  ·  view source on GitHub ↗
(node *ast.Node, nodeStartLine int, indentation int, delta int)

Source from the content-addressed store, hash-verified

1241}
1242
1243func (w *formatSpanWorker) getDynamicIndentation(node *ast.Node, nodeStartLine int, indentation int, delta int) *dynamicIndenter {
1244 return &dynamicIndenter{
1245 node: node,
1246 nodeStartLine: nodeStartLine,
1247 indentation: indentation,
1248 delta: delta,
1249 options: w.formattingContext.Options,
1250 sourceFile: w.sourceFile,
1251 }
1252}

Callers 2

processChildNodesMethod · 0.95
processNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected