-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Short string representation of TypePointer in AST JSON #3773
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
axic
left a comment
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.
Please adjusts (or add) tests for this.
|
@axic Added missing tests. |
|
Looks good to me! |
axic
left a comment
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.
Please check the resulting typeString (and typeIdentifier). It is a good idea to take all examples from the initial issue.
01dc5f6 to
d6f3d38
Compare
|
@axic I've realised that the tests used the legacy AST output instead of the new compact one. That's the reason why checks for Not sure about @chriseth What do you think about this remaing issue? |
|
The rich identifier is fine, it is only important that it is really unique. They are not really exposed to the user as much as the other stuff is. |
d6f3d38 to
5847ced
Compare
axic
left a comment
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.
Please have at least two cases, one which triggers _short = false and one which triggers _short = true.
|
Basically just extend all the other test cases with |
5847ced to
406a610
Compare
|
@axic The JSON AST tests are using the legacy JSON output. That's why you won't find I think I'd rather add some tests that cover non-shortened type pointer as you suggested. |
In that case I think we should introduce two sub suites to group the legacy and the "compact" tests. |
|
Great idea, will do that! |
|
I actually meant that there can be multiple sub-levels of Also the case |
|
@axic Ok, my idea was to split them into 2 files right away, in order to not end up with a very large one at some point. But if you prefer a single file with multiple sub-suites, I'll put it back. I don't have a stong opinion on that. I've pulled out the legacy part of the |
|
I don't have any preference, but if it is a split file I'd name it |
ec72bc2 to
443e1b9
Compare
|
@axic I've renamed the legacy file / suite and added two tests that cover long |
|
Please add a changelog entry. |
ekpyron
left a comment
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.
Looks fine to me now!
ad3fcb3 to
b2b5775
Compare
|
Rebased. |
Changelog.md
Outdated
| * General: Limit the number of errors output in a single run to 256. | ||
| * General: Support accessing dynamic return data in post-byzantium EVMs. | ||
| * Interfaces: Allow overriding external functions in interfaces with public in an implementing contract. | ||
| * JSON AST: Use short string representation for TypePointers. |
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.
This should be a bugfix, and perhaps also phrased differently for the changelog: Remove storage qualifier for type name strings.
b2b5775 to
5ffe3d8
Compare
|
Sorry, please rebase. |
5ffe3d8 to
4bd31aa
Compare
Fixes #3567