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

Function startsWithUseStrict

test/fixtures/snapshot/typescript.js:29899–29904  ·  view source on GitHub ↗
(statements)

Source from the content-addressed store, hash-verified

29897 }
29898 ts.findUseStrictPrologue = findUseStrictPrologue;
29899 function startsWithUseStrict(statements) {
29900 var firstStatement = ts.firstOrUndefined(statements);
29901 return firstStatement !== undefined
29902 && ts.isPrologueDirective(firstStatement)
29903 && isUseStrictPrologue(firstStatement);
29904 }
29905 ts.startsWithUseStrict = startsWithUseStrict;
29906 function isCommaSequence(node) {
29907 return node.kind === 221 /* SyntaxKind.BinaryExpression */ && node.operatorToken.kind === 27 /* SyntaxKind.CommaToken */ ||

Callers

nothing calls this directly

Calls 1

isUseStrictPrologueFunction · 0.85

Tested by

no test coverage detected