MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / onCompiler

Method onCompiler

static/panes/stack-usage-view.ts:181–190  ·  view source on GitHub ↗
(id: number, compiler: CompilerInfo | null)

Source from the content-addressed store, hash-verified

179 }
180
181 override onCompiler(id: number, compiler: CompilerInfo | null) {
182 if (id === this.compilerInfo.compilerId) {
183 this.compilerInfo.compilerName = compiler ? compiler.name : '';
184 this.updateTitle();
185 this.isCompilerSupported = compiler ? compiler.supportsStackUsageOutput : false;
186 if (!this.isCompilerSupported) {
187 this.editor.setValue('<Stack usage output is not supported for this compiler>');
188 }
189 }
190 }
191
192 // Don't do anything for this pane
193 override sendPrintData() {}

Callers

nothing calls this directly

Calls 1

updateTitleMethod · 0.45

Tested by

no test coverage detected