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

Function getInstructionName

test/fixtures/snapshot/typescript.js:101933–101942  ·  view source on GitHub ↗
(instruction)

Source from the content-addressed store, hash-verified

101931 Instruction[Instruction["Endfinally"] = 7] = "Endfinally";
101932 })(Instruction || (Instruction = {}));
101933 function getInstructionName(instruction) {
101934 switch (instruction) {
101935 case 2 /* Instruction.Return */: return "return";
101936 case 3 /* Instruction.Break */: return "break";
101937 case 4 /* Instruction.Yield */: return "yield";
101938 case 5 /* Instruction.YieldStar */: return "yield*";
101939 case 7 /* Instruction.Endfinally */: return "endfinally";
101940 default: return undefined; // TODO: GH#18217
101941 }
101942 }
101943 function transformGenerators(context) {
101944 var factory = context.factory, emitHelpers = context.getEmitHelperFactory, resumeLexicalEnvironment = context.resumeLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistFunctionDeclaration = context.hoistFunctionDeclaration, hoistVariableDeclaration = context.hoistVariableDeclaration;
101945 var compilerOptions = context.getCompilerOptions();

Callers 1

createInstructionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected