(state: CompilerState | ExecutorState)
| 52 | } |
| 53 | |
| 54 | public updateState(state: CompilerState | ExecutorState) { |
| 55 | this.overridesWidget.setCompiler(state.compiler, state.lang); |
| 56 | |
| 57 | if (state.overrides) { |
| 58 | this.overridesWidget.set(state.overrides); |
| 59 | } |
| 60 | |
| 61 | if (this.runtimeToolsWidget) { |
| 62 | this.runtimeToolsWidget.setCompiler(state.compiler, state.lang); |
| 63 | if (state.runtimeTools) { |
| 64 | this.runtimeToolsWidget.set(state.runtimeTools); |
| 65 | } else { |
| 66 | this.runtimeToolsWidget.setDefaults(); |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | private initButtons(onChange: () => void) { |
| 72 | this.overridesButton = this.domRoot.find('.btn.show-overrides'); |
nothing calls this directly
no test coverage detected