MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / postInit

Method postInit

static/panes/executor.ts:177–201  ·  view source on GitHub ↗
(state: PaneState & ExecutorState)

Source from the content-addressed store, hash-verified

175 }
176
177 private async postInit(state: PaneState & ExecutorState) {
178 await this.initLangAndCompiler(state);
179
180 this.compilerPicker = new CompilerPicker(
181 this.domRoot,
182 this.hub,
183 this.currentLangId,
184 this.compiler ? this.compiler.id : '',
185 this.onCompilerChange.bind(this),
186 this.compilerIsVisible,
187 );
188
189 await this.initLibraries(state);
190 this.updateCompilerInfo();
191 this.updateState();
192
193 if (this.sourceTreeId) {
194 this.compile();
195 }
196
197 if (!this.hub.deferred) {
198 this.eventHub.emit('executorOpen', this.id, this.sourceEditorId ?? false);
199 this.undefer();
200 }
201 }
202
203 override initializeCompilerInfo(state: PaneState) {
204 this.compilerInfo = {

Callers 1

constructorMethod · 0.95

Calls 7

initLangAndCompilerMethod · 0.95
initLibrariesMethod · 0.95
updateCompilerInfoMethod · 0.95
updateStateMethod · 0.95
compileMethod · 0.95
undeferMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected