MCPcopy Index your code
hub / github.com/nodejs/node / attachFlowNodeDebugInfoWorker

Function attachFlowNodeDebugInfoWorker

test/fixtures/snapshot/typescript.js:2944–2970  ·  view source on GitHub ↗
(flowNode)

Source from the content-addressed store, hash-verified

2942 Debug.formatControlFlowGraph = formatControlFlowGraph;
2943 var flowNodeProto;
2944 function attachFlowNodeDebugInfoWorker(flowNode) {
2945 if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
2946 Object.defineProperties(flowNode, {
2947 // for use with vscode-js-debug's new customDescriptionGenerator in launch.json
2948 __tsDebuggerDisplay: {
2949 value: function () {
2950 var flowHeader = this.flags & 2 /* FlowFlags.Start */ ? "FlowStart" :
2951 this.flags & 4 /* FlowFlags.BranchLabel */ ? "FlowBranchLabel" :
2952 this.flags & 8 /* FlowFlags.LoopLabel */ ? "FlowLoopLabel" :
2953 this.flags & 16 /* FlowFlags.Assignment */ ? "FlowAssignment" :
2954 this.flags & 32 /* FlowFlags.TrueCondition */ ? "FlowTrueCondition" :
2955 this.flags & 64 /* FlowFlags.FalseCondition */ ? "FlowFalseCondition" :
2956 this.flags & 128 /* FlowFlags.SwitchClause */ ? "FlowSwitchClause" :
2957 this.flags & 256 /* FlowFlags.ArrayMutation */ ? "FlowArrayMutation" :
2958 this.flags & 512 /* FlowFlags.Call */ ? "FlowCall" :
2959 this.flags & 1024 /* FlowFlags.ReduceLabel */ ? "FlowReduceLabel" :
2960 this.flags & 1 /* FlowFlags.Unreachable */ ? "FlowUnreachable" :
2961 "UnknownFlow";
2962 var remainingFlags = this.flags & ~(2048 /* FlowFlags.Referenced */ - 1);
2963 return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
2964 }
2965 },
2966 __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, /*isFlags*/ true); } },
2967 __debugToString: { value: function () { return formatControlFlowGraph(this); } }
2968 });
2969 }
2970 }
2971 function attachFlowNodeDebugInfo(flowNode) {
2972 if (isDebugInfoEnabled) {
2973 if (typeof Object.setPrototypeOf === "function") {

Callers 1

attachFlowNodeDebugInfoFunction · 0.85

Calls 4

formatFlowFlagsFunction · 0.85
formatEnumFunction · 0.85
formatControlFlowGraphFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…