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

Function formatOnSemicolon

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

Source from the content-addressed store, hash-verified

146998 }
146999 formatting.formatOnEnter = formatOnEnter;
147000 function formatOnSemicolon(position, sourceFile, formatContext) {
147001 var semicolon = findImmediatelyPrecedingTokenOfKind(position, 26 /* SyntaxKind.SemicolonToken */, sourceFile);
147002 return formatNodeLines(findOutermostNodeWithinListLevel(semicolon), sourceFile, formatContext, 3 /* FormattingRequestKind.FormatOnSemicolon */);
147003 }
147004 formatting.formatOnSemicolon = formatOnSemicolon;
147005 function formatOnOpeningCurly(position, sourceFile, formatContext) {
147006 var openingCurly = findImmediatelyPrecedingTokenOfKind(position, 18 /* SyntaxKind.OpenBraceToken */, sourceFile);

Callers

nothing calls this directly

Calls 3

formatNodeLinesFunction · 0.85

Tested by

no test coverage detected