(flowNode)
| 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") { |
no test coverage detected
searching dependent graphs…