Feat/better parser position tracking#571
Merged
Merged
Conversation
…r del nodes in ASTLowerer
…cs, to move some state out of the way
…make it shorter and clearer
… of the end position of an error (no end = whole line)
…tem that can be shared with the error context
…setFilename/line/col
…tead of a big hacky optional expr & symbol & symbol size (that can or cannot match the size of the symbol)
Static analysis reportLizard reportListing only functions with cyclomatic complexity >= 15 or NLOC >= 100 or parameters >= 6.
Report about files you didn't modify in this PR
CppCheck report
Report files about files you didn't modify in this PR
|
CodSpeed Performance ReportMerging #571 will degrade performances by 6.45%Comparing Summary
Benchmarks breakdown
|
b9817b9 to
582ae8a
Compare
Fuzzing report/usr/local/bin/afl-whatsup status check tool for afl-fuzz by Michal Zalewski Summary statsCycles without finds : 0 [+] Captured 46734 tuples (map size 218048, highest value 255, total values 425618956) in '/dev/null'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Finally storing the end position of our nodes allowed me to remove big ugly hacks in the diagnostics generation.
Checklist
I have updated the documentation if needed (on https://github.com/ArkScript-lang/website, content/docs/)not needed, only internal changesI have added tests that prove my fix/feature is workingnot needed, all edge cases are covered by the existing tests