From 835d2e38455cc59bc39bb4298d55b432fea9ffc2 Mon Sep 17 00:00:00 2001 From: Alex Fedoseev Date: Thu, 22 Sep 2022 17:27:17 +0400 Subject: [PATCH] Remove filePath from Location.t --- HISTORY.md | 1 + lib/src/Location.res | 1 - ppx/lib/Lib.ml | 4 ---- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 489d0e8..3ad637e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,6 @@ # History ## UNRELEASED +- **[BREAKING]** Remove `filePath` from `Location.t`. - Upgrade to `rescript@10`. ## 2.2.0 diff --git a/lib/src/Location.res b/lib/src/Location.res index 9cd4ffa..e75d4b2 100644 --- a/lib/src/Location.res +++ b/lib/src/Location.res @@ -3,7 +3,6 @@ type t = { subModulePath: list, value: option, fullPath: string, - filePath: string, } let format = x => `[${x.fullPath}]` diff --git a/ppx/lib/Lib.ml b/ppx/lib/Lib.ml index 403d2d6..0c795d4 100644 --- a/ppx/lib/Lib.ml +++ b/ppx/lib/Lib.ml @@ -282,10 +282,6 @@ module Ast = struct {txt = Lident "fullPath"; loc = !default_loc}, Exp.constant (Const.string (cp |> Code_path.fully_qualified_path)) ); - ( - {txt = Lident "filePath"; loc = !default_loc}, - Exp.constant (Const.string (cp |> Code_path.file_path)) - ); ] None