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

Function getItemDisplayTitle

static/panes/diff.ts:195–204  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

193}
194
195function getItemDisplayTitle(item) {
196 if (typeof item.id === 'string') {
197 const p = item.id.indexOf('_exec');
198 if (p !== -1) {
199 return 'Executor #' + item.id.substr(0, p);
200 }
201 }
202
203 return 'Compiler #' + item.id;
204}
205
206type CompilerEntry = {
207 id: number | string;

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected