Skip to content

Complete tagged template application #7278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 6, 2025
Prev Previous commit
Add example
  • Loading branch information
nojaf committed Feb 6, 2025
commit 375dffb2db5dca2b26a0581c0f07f8d63bf132b6
4 changes: 3 additions & 1 deletion analysis/src/CompletionFrontEnd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor
exprLoc = expr.pexp_loc;
}));
setFound ())
(*
(*
A dot completion for a tagged templated application with an ident.
Example:
sh`echo "meh"`.foo
Expand All @@ -1166,7 +1166,9 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor
funct = {pexp_desc = Pexp_ident {txt = Lident "."; loc = _}};
args =
[
(* sh`echo "meh"` *)
(_, ({pexp_desc = Pexp_apply _} as innerExpr));
(* foo *)
(_, {pexp_desc = Pexp_ident {txt = Lident fieldName}});
];
}
Expand Down