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

Function syntaxRequiresTrailingSemicolonOrASI

test/fixtures/snapshot/typescript.js:129009–129025  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

129007 return kind === 261 /* SyntaxKind.ModuleDeclaration */;
129008 }
129009 function syntaxRequiresTrailingSemicolonOrASI(kind) {
129010 return kind === 237 /* SyntaxKind.VariableStatement */
129011 || kind === 238 /* SyntaxKind.ExpressionStatement */
129012 || kind === 240 /* SyntaxKind.DoStatement */
129013 || kind === 245 /* SyntaxKind.ContinueStatement */
129014 || kind === 246 /* SyntaxKind.BreakStatement */
129015 || kind === 247 /* SyntaxKind.ReturnStatement */
129016 || kind === 251 /* SyntaxKind.ThrowStatement */
129017 || kind === 253 /* SyntaxKind.DebuggerStatement */
129018 || kind === 167 /* SyntaxKind.PropertyDeclaration */
129019 || kind === 259 /* SyntaxKind.TypeAliasDeclaration */
129020 || kind === 266 /* SyntaxKind.ImportDeclaration */
129021 || kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
129022 || kind === 272 /* SyntaxKind.ExportDeclaration */
129023 || kind === 264 /* SyntaxKind.NamespaceExportDeclaration */
129024 || kind === 271 /* SyntaxKind.ExportAssignment */;
129025 }
129026 ts.syntaxRequiresTrailingSemicolonOrASI = syntaxRequiresTrailingSemicolonOrASI;
129027 ts.syntaxMayBeASICandidate = ts.or(syntaxRequiresTrailingCommaOrSemicolonOrASI, syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI, syntaxRequiresTrailingModuleBlockOrSemicolonOrASI, syntaxRequiresTrailingSemicolonOrASI);
129028 function nodeIsASICandidate(node, sourceFile) {

Callers 2

nodeIsASICandidateFunction · 0.85
probablyUsesSemicolonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected