-
Notifications
You must be signed in to change notification settings - Fork 485
Represent explicit expression braces in parsetree v1 #8678
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
Changes from all commits
74f7461
bf824a2
6710020
eaa2818
792a549
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -271,6 +271,9 @@ and expression = { | |
| } | ||
|
|
||
| and expression_desc = | ||
| | Pexp_braces of {expr: expression; braces_loc: Location.t} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Introducing this wrapper changes every explicitly braced binding's top-level descriptor, but the editor classifiers still inspect that descriptor directly. For example, AGENTS.md reference: AGENTS.md:L104-L109 Useful? React with 👍 / 👎. |
||
| (* Explicit braces around an expression. [pexp_loc] stays on the enclosed | ||
| expression; [braces_loc] covers the delimiters for printing. *) | ||
|
cknitt marked this conversation as resolved.
|
||
| | Pexp_ident of Longident.t loc (* x | ||
| M.x | ||
| *) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.