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

Function isUseStrictPrologue

test/fixtures/snapshot/typescript.js:27003–27005  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

27001 return copyCustomPrologue(source, target, offset, visitor);
27002 }
27003 function isUseStrictPrologue(node) {
27004 return ts.isStringLiteral(node.expression) && node.expression.text === "use strict";
27005 }
27006 function createUseStrictPrologue() {
27007 return ts.startOnNewLine(createExpressionStatement(createStringLiteral("use strict")));
27008 }

Callers 3

copyStandardPrologueFunction · 0.85
findUseStrictPrologueFunction · 0.85
startsWithUseStrictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected