aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/components.interfaces.ts1
-rw-r--r--static/graph-layout-core.ts2
-rw-r--r--static/panes/compiler.ts32
3 files changed, 19 insertions, 16 deletions
diff --git a/static/components.interfaces.ts b/static/components.interfaces.ts
index 267648ba7..0dce4e9ec 100644
--- a/static/components.interfaces.ts
+++ b/static/components.interfaces.ts
@@ -61,6 +61,7 @@ export interface ComponentConfig<S> {
}
type StateWithLanguage = {lang: string};
+// TODO(#4490 The War of The Types) We should normalize state types
type StateWithEditor = {source: string | number};
type StateWithTree = {tree: number};
type StateWithId = {id: number};
diff --git a/static/graph-layout-core.ts b/static/graph-layout-core.ts
index 6f6643651..4093d7ef4 100644
--- a/static/graph-layout-core.ts
+++ b/static/graph-layout-core.ts
@@ -656,12 +656,14 @@ export class GraphLayoutCore {
for (const edgeColumn of this.edgeColumns) {
for (const intervalTree of edgeColumn.intervals) {
// Note: Incorrect types in the interval tree library
+ // After https://github.com/alexbol99/flatten-interval-tree/pull/42 this can be intervalTree.clear()
(intervalTree.root as Node<EdgeSegment> | null) = null;
}
}
for (const edgeRow of this.edgeRows) {
for (const intervalTree of edgeRow.intervals) {
// Note: Incorrect types in the interval tree library
+ // After https://github.com/alexbol99/flatten-interval-tree/pull/42 this can be intervalTree.clear()
(intervalTree.root as Node<EdgeSegment> | null) = null;
}
}
diff --git a/static/panes/compiler.ts b/static/panes/compiler.ts
index ff8f06072..9f34ddb2b 100644
--- a/static/panes/compiler.ts
+++ b/static/panes/compiler.ts
@@ -2556,22 +2556,22 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co
// The executorButton does not need to be changed here, because you can create however
// many executors as you want.
- this.optButton.toggle(!!this.compiler.supportsOptOutput);
- this.ppButton.toggle(!!this.compiler.supportsPpView);
- this.astButton.toggle(!!this.compiler.supportsAstView);
- this.irButton.toggle(!!this.compiler.supportsIrView);
- this.llvmOptPipelineButton.toggle(!!this.compiler.supportsLLVMOptPipelineView);
- this.deviceButton.toggle(!!this.compiler.supportsDeviceAsmView);
- this.rustMirButton.toggle(!!this.compiler.supportsRustMirView);
- this.rustMacroExpButton.toggle(!!this.compiler.supportsRustMacroExpView);
- this.rustHirButton.toggle(!!this.compiler.supportsRustHirView);
- this.haskellCoreButton.toggle(!!this.compiler.supportsHaskellCoreView);
- this.haskellStgButton.toggle(!!this.compiler.supportsHaskellStgView);
- this.haskellCmmButton.toggle(!!this.compiler.supportsHaskellCmmView);
- this.cfgButton.toggle(!!this.compiler.supportsCfg);
- this.gccDumpButton.toggle(!!this.compiler.supportsGccDump);
- this.gnatDebugTreeButton.toggle(!!this.compiler.supportsGnatDebugViews);
- this.gnatDebugButton.toggle(!!this.compiler.supportsGnatDebugViews);
+ this.optButton.toggle(this.compiler.supportsOptOutput);
+ this.ppButton.toggle(this.compiler.supportsPpView);
+ this.astButton.toggle(this.compiler.supportsAstView);
+ this.irButton.toggle(this.compiler.supportsIrView);
+ this.llvmOptPipelineButton.toggle(this.compiler.supportsLLVMOptPipelineView);
+ this.deviceButton.toggle(this.compiler.supportsDeviceAsmView);
+ this.rustMirButton.toggle(this.compiler.supportsRustMirView);
+ this.rustMacroExpButton.toggle(this.compiler.supportsRustMacroExpView);
+ this.rustHirButton.toggle(this.compiler.supportsRustHirView);
+ this.haskellCoreButton.toggle(this.compiler.supportsHaskellCoreView);
+ this.haskellStgButton.toggle(this.compiler.supportsHaskellStgView);
+ this.haskellCmmButton.toggle(this.compiler.supportsHaskellCmmView);
+ this.cfgButton.toggle(this.compiler.supportsCfg);
+ this.gccDumpButton.toggle(this.compiler.supportsGccDump);
+ this.gnatDebugTreeButton.toggle(this.compiler.supportsGnatDebugViews);
+ this.gnatDebugButton.toggle(this.compiler.supportsGnatDebugViews);
this.executorButton.toggle(this.compiler.supportsExecute);
this.compilerLicenseButton.toggle(!!this.hasCompilerLicenseInfo());