Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Improve error reporting of named argument mismatch #12238
base: develop
Are you sure you want to change the base?
Improve error reporting of named argument mismatch #12238
Changes from 9 commits
8ec0feb
0a81afd
bfcd675
33c7e27
343673d
494f160
ca449ce
215d497
236822a
09889da
c29ce71
f20f0e2
e645b05
e64d35d
256ef29
1f3c7ec
4e7b52a
fb7ec2c
64e429c
38ca032
97b7d27
af3ba05
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is this a compilation constant? Try
CompilerAsserts.partialEvaluationContant
or co.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.
Tried in e645b05, is that how it is supposed to be used?
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.
Why do we need new
boolean
argument? Isn'tpostApplicationSchema.getOversaturatedArguments()
good enough indicator that there are oversaturated arguments?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.
But the
create
method/constructor does not seepostApplicationSchema
, it sees the result ofpostApplicationSchema.getOversaturatedArguments()
which is just aCallArgumentInfo[] schema
.From inside of
InvokeCallableNodeGen.create
you can no longer tell if the arguments being passed were 'oversaturated' or 'normal' - you just get some schema, that is the same kind as in all different places whereInvokeCallableNode
is constructed.That's why this argument is added to be able to distinguish the situations at call-site.