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

Function makeVariableStatement

test/fixtures/snapshot/typescript.js:162268–162271  ·  view source on GitHub ↗
(name, type, initializer, flags)

Source from the content-addressed store, hash-verified

162266 }
162267 }
162268 function makeVariableStatement(name, type, initializer, flags) {
162269 if (flags === void 0) { flags = 2 /* NodeFlags.Const */; }
162270 return ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, type, initializer)], flags));
162271 }
162272 function createRequireCall(moduleSpecifier) {
162273 return ts.factory.createCallExpression(ts.factory.createIdentifier("require"), /*typeArguments*/ undefined, [moduleSpecifier]);
162274 }

Callers 2

makeImportOrRequireFunction · 0.85
filterImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected