Skip to content

Commit

Permalink
Update compiler/src/language_server/sourcetree.re
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored Sep 12, 2023
1 parent 9a6d312 commit 7570228
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/src/language_server/sourcetree.re
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,7 @@ module Sourcetree: Sourcetree = {
| Some(path) =>
let decl = Env.find_type(path, pat.pat_env);
if (decl.type_loc == Location.dummy_loc) {
switch (pat.pat_desc) {
| TPatConstruct(_, desc, _) => Some(desc.cstr_loc)
| _ => None
};
None;
} else {
Some(decl.type_loc);
};
Expand Down

0 comments on commit 7570228

Please sign in to comment.