(
public readonly layout: GoldenLayout,
subLangId: string | undefined,
defaultLangId: LanguageKey,
)
| 125 | public defaultLangId: LanguageKey; |
| 126 | |
| 127 | public constructor( |
| 128 | public readonly layout: GoldenLayout, |
| 129 | subLangId: string | undefined, |
| 130 | defaultLangId: LanguageKey, |
| 131 | ) { |
| 132 | this.lastOpenedLangId = null; |
| 133 | this.subdomainLangId = subLangId; |
| 134 | this.defaultLangId = defaultLangId; |
| 135 | this.compilerService = new CompilerService(this.layout.eventHub); |
| 136 | |
| 137 | layout.registerComponent(EDITOR_COMPONENT_NAME, (c: GLC, s: any) => this.codeEditorFactory(c, s)); |
| 138 | layout.registerComponent(COMPILER_COMPONENT_NAME, (c: GLC, s: any) => this.compilerFactory(c, s)); |
| 139 | layout.registerComponent(TREE_COMPONENT_NAME, (c: GLC, s: any) => this.treeFactory(c, s)); |
| 140 | layout.registerComponent(EXECUTOR_COMPONENT_NAME, (c: GLC, s: any) => this.executorFactory(c, s)); |
| 141 | layout.registerComponent(OUTPUT_COMPONENT_NAME, (c: GLC, s: any) => this.outputFactory(c, s)); |
| 142 | layout.registerComponent(TOOL_COMPONENT_NAME, (c: GLC, s: any) => this.toolFactory(c, s)); |
| 143 | layout.registerComponent(TOOL_INPUT_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.toolInputViewFactory(c, s)); |
| 144 | layout.registerComponent(DIFF_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.diffFactory(c, s)); |
| 145 | layout.registerComponent(OPT_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.optViewFactory(c, s)); |
| 146 | layout.registerComponent(STACK_USAGE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.stackUsageViewFactory(c, s)); |
| 147 | layout.registerComponent(FLAGS_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.flagsViewFactory(c, s)); |
| 148 | layout.registerComponent(PP_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.ppViewFactory(c, s)); |
| 149 | layout.registerComponent(AST_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.astViewFactory(c, s)); |
| 150 | layout.registerComponent(IR_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.irViewFactory(c, s)); |
| 151 | layout.registerComponent(CLANGIR_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.clangirViewFactory(c, s)); |
| 152 | layout.registerComponent(OPT_PIPELINE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.optPipelineFactory(c, s)); |
| 153 | // Historical LLVM-specific name preserved to keep old links working |
| 154 | layout.registerComponent(LLVM_OPT_PIPELINE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => |
| 155 | this.optPipelineFactory(c, s), |
| 156 | ); |
| 157 | layout.registerComponent(DEVICE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.deviceViewFactory(c, s)); |
| 158 | layout.registerComponent(RUST_MIR_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.rustMirViewFactory(c, s)); |
| 159 | layout.registerComponent(HASKELL_CORE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => |
| 160 | this.haskellCoreViewFactory(c, s), |
| 161 | ); |
| 162 | layout.registerComponent(HASKELL_STG_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.haskellStgViewFactory(c, s)); |
| 163 | layout.registerComponent(HASKELL_CMM_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.haskellCmmViewFactory(c, s)); |
| 164 | layout.registerComponent(LEAN_C_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.leanCViewFactory(c, s)); |
| 165 | layout.registerComponent(GNAT_DEBUG_TREE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => |
| 166 | this.gnatDebugTreeViewFactory(c, s), |
| 167 | ); |
| 168 | layout.registerComponent(GNAT_DEBUG_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.gnatDebugViewFactory(c, s)); |
| 169 | layout.registerComponent(RUST_MACRO_EXP_VIEW_COMPONENT_NAME, (c: GLC, s: any) => |
| 170 | this.rustMacroExpViewFactory(c, s), |
| 171 | ); |
| 172 | layout.registerComponent(RUST_HIR_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.rustHirViewFactory(c, s)); |
| 173 | layout.registerComponent(CLOJURE_MACRO_EXP_VIEW_COMPONENT_NAME, (c: GLC, s: any) => |
| 174 | this.clojureMacroExpViewFactory(c, s), |
| 175 | ); |
| 176 | layout.registerComponent(GCC_DUMP_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.gccDumpViewFactory(c, s)); |
| 177 | layout.registerComponent(CFG_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.cfgViewFactory(c, s)); |
| 178 | layout.registerComponent(CONFORMANCE_VIEW_COMPONENT_NAME, (c: GLC, s: any) => |
| 179 | this.conformanceViewFactory(c, s), |
| 180 | ); |
| 181 | layout.registerComponent(EXPLAIN_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.explainViewFactory(c, s)); |
| 182 | layout.registerComponent(YUL_VIEW_COMPONENT_NAME, (c: GLC, s: any) => this.yulViewFactory(c, s)); |
| 183 | |
| 184 | layout.eventHub.on( |
nothing calls this directly
no test coverage detected