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

Function getDiffViewWith

static/components.ts:321–330  ·  view source on GitHub ↗
(lhs: unknown, rhs: unknown)

Source from the content-addressed store, hash-verified

319 * TODO: possibly unused?
320 */
321export function getDiffViewWith(lhs: unknown, rhs: unknown): ComponentConfig<typeof DIFF_VIEW_COMPONENT_NAME> {
322 return {
323 type: 'component',
324 componentName: DIFF_VIEW_COMPONENT_NAME,
325 componentState: {
326 lhs,
327 rhs,
328 },
329 };
330}
331
332/** Get an empty opt view component. */
333export function getOptView(): ComponentConfig<typeof OPT_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected