Skip to content

Remove res partial #7240

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 3 commits into from
Jan 11, 2025
Merged

Remove res partial #7240

merged 3 commits into from
Jan 11, 2025

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Jan 10, 2025

Prepare to remove @res.partial.
Add partial boolean to untyped and typed ASTs and propagate the partial information.
Then remove @res.partial entirely.

@cristianoc cristianoc changed the base branch from master to ast-apply January 10, 2025 17:01
@@ -3708,45 +3705,6 @@ and parse_call_expr p fun_expr =
None;
};
]
| [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old unnecessary case: foo() is supported.

LongModuleName.functionWithAlongNameThatWrapsTheEditorToTheNextLinexxxxxxxxxxxxxxxxxxxxxx(d),
...
)
let g = f(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These differences likely due to the fact that there's no attribute on the application node anymore, so some attribute logic used for printing does not kick in anymore.

(eq(__LOC__, 6, ...))(f1(1)(2, 3))
(eq(__LOC__, 6, ...))(f2(1, 2)(3))
(eq(__LOC__, 6, ...))(f3(1)(2, 3))
eq(__LOC__, 6, ...)(f0(1, 2, 3))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After formatting. Again attribute logic likely causing this (positive) change.

Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

One thing I thought of, but that's not really related to this PR - locs for labelled arguments should be possible to add to the AST now as well, right? They're also attributes now I believe.

Base automatically changed from ast-apply to master January 11, 2025 08:57
@cristianoc cristianoc merged commit e96f2f2 into master Jan 11, 2025
12 of 13 checks passed
@cristianoc cristianoc deleted the remove_res_partial branch January 11, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants