Skip to content

Commit ba78715

Browse files
authoredDec 10, 2024
Represent the arity of uncurried function definitions directly in the… (#7197)
* Represent the arity of uncurried function definitions directly in the AST. * Use uncurried type for `@deriving(jsConverter)` This goes towards making all arities explicit. * Clean up arity in derive projector. The arity is later overridden anyway, but being explicit can help cleaning up later on if `Function$` is removed entirely. * Most of Untypeast is never used. * More explicit translation for `Function$`. Cosmetic change that will be needed later to remove `Function$`. * Update CHANGELOG.md
1 parent 55f12e0 commit ba78715

File tree

104 files changed

+1643
-2229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1643
-2229
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- Ast cleanup: remove exp object and exp unreachable. https://github.com/rescript-lang/rescript/pull/7189
2424
- Ast cleanup: explicit representation for optional record fields in types. https://github.com/rescript-lang/rescript/pull/7190 https://github.com/rescript-lang/rescript/pull/7191
2525
- AST cleanup: first-class expression and patterns for records with optional fields. https://github.com/rescript-lang/rescript/pull/7192
26+
- AST cleanup: Represent the arity of uncurried function definitions directly in the AST. https://github.com/rescript-lang/rescript/pull/7197
2627

2728

2829
# 12.0.0-alpha.5

‎analysis/src/CompletionFrontEnd.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor
13181318
match exprToContextPath lhs with
13191319
| Some contextPath -> setResult (Cpath (CPObj (contextPath, label)))
13201320
| None -> ())
1321-
| Pexp_fun (lbl, defaultExpOpt, pat, e) ->
1321+
| Pexp_fun (lbl, defaultExpOpt, pat, e, _) ->
13221322
let oldScope = !scope in
13231323
(match (!processingFun, !currentCtxPath) with
13241324
| None, Some ctxPath -> processingFun := Some (ctxPath, 0)

0 commit comments

Comments
 (0)