(treeId: number, lang: string)
| 173 | |
| 174 | /** Get an executor for a tree mode component. */ |
| 175 | export function getExecutorForTree(treeId: number, lang: string): ComponentConfig<typeof EXECUTOR_COMPONENT_NAME> { |
| 176 | return { |
| 177 | type: 'component', |
| 178 | componentName: EXECUTOR_COMPONENT_NAME, |
| 179 | componentState: { |
| 180 | tree: treeId, |
| 181 | lang, |
| 182 | compilationPanelShown: true, |
| 183 | compilerOutShown: true, |
| 184 | }, |
| 185 | }; |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Get an empty editor component. |
nothing calls this directly
no outgoing calls
no test coverage detected