Skip to content

Commit

Permalink
Merge pull request #35 from shakacode/update-location
Browse files Browse the repository at this point in the history
Remove filePath from Location.t
  • Loading branch information
Alex Fedoseev authored Sep 22, 2022
2 parents 9724f1a + 835d2e3 commit d5b0142
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# History
## UNRELEASED
- **[BREAKING]** Remove `filePath` from `Location.t`.
- Upgrade to `rescript@10`.

## 2.2.0
Expand Down
1 change: 0 additions & 1 deletion lib/src/Location.res
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ type t = {
subModulePath: list<string>,
value: option<string>,
fullPath: string,
filePath: string,
}

let format = x => `[${x.fullPath}]`
4 changes: 0 additions & 4 deletions ppx/lib/Lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d5b0142

Please sign in to comment.