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

Function formatOnClosingCurly

test/fixtures/snapshot/typescript.js:147031–147034  ·  view source on GitHub ↗
(position, sourceFile, formatContext)

Source from the content-addressed store, hash-verified

147029 }
147030 formatting.formatOnOpeningCurly = formatOnOpeningCurly;
147031 function formatOnClosingCurly(position, sourceFile, formatContext) {
147032 var precedingToken = findImmediatelyPrecedingTokenOfKind(position, 19 /* SyntaxKind.CloseBraceToken */, sourceFile);
147033 return formatNodeLines(findOutermostNodeWithinListLevel(precedingToken), sourceFile, formatContext, 5 /* FormattingRequestKind.FormatOnClosingCurlyBrace */);
147034 }
147035 formatting.formatOnClosingCurly = formatOnClosingCurly;
147036 function formatDocument(sourceFile, formatContext) {
147037 var span = {

Callers

nothing calls this directly

Calls 3

formatNodeLinesFunction · 0.85

Tested by

no test coverage detected