MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / constructor

Method constructor

static/panes/flags-view.ts:43–54  ·  view source on GitHub ↗
(hub: Hub, container: Container, state: FlagsViewState & MonacoPaneState)

Source from the content-addressed store, hash-verified

41 cursorSelectionThrottledFunction: ((e: any) => void) & _.Cancelable;
42 lastChangeEmitted: string;
43 constructor(hub: Hub, container: Container, state: FlagsViewState & MonacoPaneState) {
44 super(hub, container, state);
45
46 let value = '';
47 if (state.compilerFlags) {
48 value = state.compilerFlags.replace(/ /g, '\n');
49 }
50 this.editor.setValue(value);
51
52 this.onSettingsChange(Settings.getStoredSettings());
53 this.eventHub.emit('flagsViewOpened', this.compilerInfo.compilerId);
54 }
55
56 override getInitialHTML() {
57 return $('#flags').html();

Callers

nothing calls this directly

Calls 3

onSettingsChangeMethod · 0.95
getStoredSettingsMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected