-
Notifications
You must be signed in to change notification settings - Fork 471
AST: use inline record for Ptyp_arrow. #7250
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
Conversation
276b975 to
30b0d78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Syntax Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.
| Benchmark suite | Current: 30b0d78 | Previous: e1b7fb7 | Ratio |
|---|---|---|---|
Print RedBlackTreeNoComments.res - time/run |
2.210543746666666 ms |
2.10057036 ms |
1.05 |
Print Napkinscript.res - time/run |
81.68034058666667 ms |
77.00100409999999 ms |
1.06 |
This comment was automatically generated by workflow using github-action-benchmark.
analysis/src/SignatureHelp.ml
Outdated
| Ptyp_arrow | ||
| { | ||
| lbl = argumentLabel; | ||
| typ1 = argumentTypeExpr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we maybe use more descriptive names than typ1 and typ2?
Something like argument_type and return_type (or arg_typ and ret_typ or similar)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd be a good addition indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fact that they are types is redundant, so typ1 and typ2 convey very little information.
arg and ret could work well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
30b0d78 to
b3ce244
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.