[be] Move Result into Utils/
The `Utils/` folder is meant to be a catch-all for code that doesn't have an obvious home in other directories.
Joe Savona committed
Jan 31, 2023 at 16:14 UTC
df07522b89703b4ec5e2b0c50dd263cdf6f03afb
3 files changed
+2
-2
compiler/forget/src/HIR/BuildHIR.ts
+1
-1
@@ -9,7 +9,7 @@ import { NodePath, Scope } from "@babel/traverse";
9
import * as t from "@babel/types";
10
import invariant from "invariant";
11
import { CompilerError, ErrorSeverity } from "../CompilerError";
12
-import { Err, Ok, Result } from "../lib/Result";
12
+import { Err, Ok, Result } from "../Utils/Result";
13
import { assertExhaustive } from "../Utils/utils";
14
import {
15
BlockId,
compiler/forget/src/Utils/Result.ts
renamed
compiler/forget/src/__tests__/Result-test.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { Err, Ok, Result } from "../lib/Result";
1
+import { Err, Ok, Result } from "../Utils/Result";
2
3
function addMax10(a: number, b: number): Result<number, string> {
4
const n = a + b;