Skip to content

Commit b53d0ad

Browse files
committed
chore: Apply suggestions from oscar code review
1 parent 70630cb commit b53d0ad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/src/language_server/inlayhint.re

+1-4
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,15 @@ let find_hints = (~toggle_type_hints: bool, program) => {
6565
include TypedtreeIter.DefaultIteratorArgument;
6666

6767
let enter_expression = ({exp_desc, exp_type}: expression) =>
68-
// Function parameter type hints
6968
if (toggle_type_hints) {
7069
switch (exp_desc) {
7170
| TExpLambda(bindings, _) =>
7271
List.iter(
7372
({mb_pat, mb_loc}: match_branch) => {
74-
// Get Parameters
7573
switch (mb_pat.pat_desc) {
7674
| TPatTuple(args) =>
7775
switch (resolve_typ(exp_type).desc) {
7876
| TTyArrow(typ_args, _, _) =>
79-
// Iterate For Types
8077
let argument_typs =
8178
List.map(
8279
((arg, typ: Types.type_expr)) =>
@@ -86,7 +83,7 @@ let find_hints = (~toggle_type_hints: bool, program) => {
8683
},
8784
typ_args,
8885
);
89-
// Make Hints
86+
w;
9087
if (List.length(argument_typs) == List.length(args)) {
9188
List.iter(
9289
((arg: pattern, typ: option(Types.type_expr))) => {

0 commit comments

Comments
 (0)