(editorId: number, lang: string)
| 130 | |
| 131 | /** Get an empty executor component. */ |
| 132 | export function getExecutor(editorId: number, lang: string): ComponentConfig<typeof EXECUTOR_COMPONENT_NAME> { |
| 133 | return { |
| 134 | type: 'component', |
| 135 | componentName: EXECUTOR_COMPONENT_NAME, |
| 136 | componentState: { |
| 137 | source: editorId, |
| 138 | lang, |
| 139 | compilationPanelShown: true, |
| 140 | compilerOutShown: true, |
| 141 | }, |
| 142 | }; |
| 143 | } |
| 144 | |
| 145 | /** Get a compiler component with the given configuration. */ |
| 146 | export function getExecutorWith( |
nothing calls this directly
no outgoing calls
no test coverage detected