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

Method constructor

static/panes/diff.ts:78–90  ·  view source on GitHub ↗
(
        id: number | string | undefined,
        model: monaco.editor.ITextModel,
        difftype: DiffType,
        extraoption?: string,
    )

Source from the content-addressed store, hash-verified

76 extraoption?: string;
77
78 constructor(
79 id: number | string | undefined,
80 model: monaco.editor.ITextModel,
81 difftype: DiffType,
82 extraoption?: string,
83 ) {
84 this.id = id;
85 this.model = model;
86 this.compiler = null;
87 this.result = undefined;
88 this.difftype = difftype;
89 this.extraoption = extraoption;
90 }
91
92 update(id: number | string, compiler: CompilerInfo, result: CompilationResult) {
93 if (this.id !== id) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected