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

Method constructor

static/settings.ts:188–195  ·  view source on GitHub ↗
(elem: JQuery, name: string, params: Record<'min' | 'max', number>)

Source from the content-addressed store, hash-verified

186 private readonly max: number;
187
188 constructor(elem: JQuery, name: string, params: Record<'min' | 'max', number>) {
189 super(elem, name);
190
191 this.min = params.min;
192 this.max = params.max;
193
194 elem.attr('min', this.min).attr('max', this.max);
195 }
196
197 override getUi(): number {
198 return this.clampValue(Number.parseInt(this.val()?.toString() ?? '0', 10));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected