Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Dec 2, 2022
1 parent ef5f22f commit a436592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
6 changes: 1 addition & 5 deletions static/panes/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2152,11 +2152,7 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co
}
}

onGccDumpFiltersChanged(
id: number,
dumpOpts: GccDumpFiltersState,
reqCompile: boolean
): void {
onGccDumpFiltersChanged(id: number, dumpOpts: GccDumpFiltersState, reqCompile: boolean): void {
if (this.id === id) {
this.treeDumpEnabled = dumpOpts.treeDump;
this.rtlDumpEnabled = dumpOpts.rtlDump;
Expand Down
20 changes: 5 additions & 15 deletions static/panes/gccdump-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
};
const match = state.selectedPass.match(selectedPassRe);
if (match) {
const selectedPassO : GccDumpViewSelectedPass = {
const selectedPassO: GccDumpViewSelectedPass = {
filename_suffix: match[1] + '.' + match[2],
name: match[2] + ' (' + passType[match[1]] + ')',
command_prefix: '-fdump-' + passType[match[1]] + '-' + match[2],

// FIXME(dkm): maybe this could be avoided by better typing.
selectedPass : null,
selectedPass: null,
};

this.eventHub.emit('gccDumpPassSelected', this.compilerInfo.compilerId, selectedPassO, false);
Expand All @@ -109,12 +109,7 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
this.uiIsReady = false;
this.onUiNotReady();

this.eventHub.emit(
'gccDumpFiltersChanged',
this.compilerInfo.compilerId,
this.getEffectiveFilters(),
false
);
this.eventHub.emit('gccDumpFiltersChanged', this.compilerInfo.compilerId, this.getEffectiveFilters(), false);

this.updateButtons();
this.updateState();
Expand Down Expand Up @@ -383,7 +378,7 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
}
}

getEffectiveFilters() : GccDumpFiltersState {
getEffectiveFilters(): GccDumpFiltersState {
// This cast only works if gccdump.pug and gccdump-view.interfaces are
// kept synchronized. See comment in gccdump-view.interfaces.ts.

Expand All @@ -395,12 +390,7 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
this.updateButtons();

if (this.inhibitPassSelect !== true) {
this.eventHub.emit(
'gccDumpFiltersChanged',
this.compilerInfo.compilerId,
this.getEffectiveFilters(),
true
);
this.eventHub.emit('gccDumpFiltersChanged', this.compilerInfo.compilerId, this.getEffectiveFilters(), true);
}
}

Expand Down

0 comments on commit a436592

Please sign in to comment.