From df07522b89703b4ec5e2b0c50dd263cdf6f03afb Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Tue, 31 Jan 2023 16:14:23 -0800 Subject: [PATCH] [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. --- compiler/forget/src/HIR/BuildHIR.ts | 2 +- compiler/forget/src/{lib => Utils}/Result.ts | 0 compiler/forget/src/__tests__/Result-test.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename compiler/forget/src/{lib => Utils}/Result.ts (100%) diff --git a/compiler/forget/src/HIR/BuildHIR.ts b/compiler/forget/src/HIR/BuildHIR.ts index 1ef205d573..55a6839fef 100644 --- a/compiler/forget/src/HIR/BuildHIR.ts +++ b/compiler/forget/src/HIR/BuildHIR.ts @@ -9,7 +9,7 @@ import { NodePath, Scope } from "@babel/traverse"; import * as t from "@babel/types"; import invariant from "invariant"; import { CompilerError, ErrorSeverity } from "../CompilerError"; -import { Err, Ok, Result } from "../lib/Result"; +import { Err, Ok, Result } from "../Utils/Result"; import { assertExhaustive } from "../Utils/utils"; import { BlockId, diff --git a/compiler/forget/src/lib/Result.ts b/compiler/forget/src/Utils/Result.ts similarity index 100% rename from compiler/forget/src/lib/Result.ts rename to compiler/forget/src/Utils/Result.ts diff --git a/compiler/forget/src/__tests__/Result-test.ts b/compiler/forget/src/__tests__/Result-test.ts index 5d6fa40d8b..f1e8fbc480 100644 --- a/compiler/forget/src/__tests__/Result-test.ts +++ b/compiler/forget/src/__tests__/Result-test.ts @@ -1,4 +1,4 @@ -import { Err, Ok, Result } from "../lib/Result"; +import { Err, Ok, Result } from "../Utils/Result"; function addMax10(a: number, b: number): Result { const n = a + b;