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

Function createUseStrictPrologue

test/fixtures/snapshot/typescript.js:27006–27008  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27004 return ts.isStringLiteral(node.expression) && node.expression.text === "use strict";
27005 }
27006 function createUseStrictPrologue() {
27007 return ts.startOnNewLine(createExpressionStatement(createStringLiteral("use strict")));
27008 }
27009 /**
27010 * Copies only the standard (string-expression) prologue-directives into the target statement-array.
27011 * @param source origin statements array

Callers 2

copyStandardPrologueFunction · 0.85
ensureUseStrictFunction · 0.85

Calls 2

createStringLiteralFunction · 0.85

Tested by

no test coverage detected