(callback: () => T)
| 3101 | // to the old hack pipeline flags that it had before the function was called. |
| 3102 | |
| 3103 | withTopicBindingContext<T>(callback: () => T): T { |
| 3104 | const oldInHackPipelineBody = this.state.inHackPipelineBody; |
| 3105 | this.state.inHackPipelineBody = true; |
| 3106 | const oldSeenTopicReference = this.state.seenTopicReference; |
| 3107 | this.state.seenTopicReference = false; |
| 3108 | |
| 3109 | try { |
| 3110 | return callback(); |
| 3111 | } finally { |
| 3112 | this.state.inHackPipelineBody = oldInHackPipelineBody; |
| 3113 | this.state.seenTopicReference = oldSeenTopicReference; |
| 3114 | } |
| 3115 | } |
| 3116 | |
| 3117 | // Enter a production parameter frame with [+In] set, unless the current |
| 3118 | // frame already has it. Returns whether a new frame was entered, in which |
nothing calls this directly
no test coverage detected