Skip to content

Conversation

beeb
Copy link
Owner

@beeb beeb commented May 15, 2025

Several inconsistencies in text span for various diagnostics were identified by diff-testing the solar and slang implementations. This PR fixes them and also improves performance of the solar parser by only iterating once over the source text to determine the utf16 offsets.

Copy link

codspeed-hq bot commented May 15, 2025

CodSpeed Performance Report

Merging #86 will degrade performances by 26.15%

Comparing fix-solar-differences (9053c73) with main (cb93eb8)

Summary

⚡ 2 improvements
❌ 1 (👁 1) regressions
✅ 13 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
👁 lint_only[test-data/InterfaceSample.sol] 6.3 µs 8.5 µs -26.15%
parse_solar[test-data/BasicSample.sol] 480.9 µs 407.5 µs +18%
parse_solar[test-data/ParserTest.sol] 686.4 µs 571.8 µs +20.04%

beeb and others added 11 commits May 15, 2025 11:15
* fix: extend doc span to item span

* feat: bump solar version to use fn header span

* chore: named assert

* fix: identifiers span

* chore: cleanup

* fix: fn-like body span

* fix: rn newline from multiline fn header span
* chore: commit hash for solar dep

* fix: multi kw unnamed return span

* chore: cleanup dbg
@beeb
Copy link
Owner Author

beeb commented May 27, 2025

Now waiting for a new solar release. Perf regression on interface test is normal as the test case changed.

* chore: rm temp fix for windows eol

* chore: solar v bump

---------

Co-authored-by: drgorillamd <83670532+drgorillamd@users.noreply.github.com>
@beeb beeb marked this pull request as ready for review June 3, 2025 13:10
@beeb beeb merged commit e40d552 into main Jun 3, 2025
16 checks passed
@beeb-release-plz beeb-release-plz bot mentioned this pull request Jun 3, 2025
@beeb beeb deleted the fix-solar-differences branch June 3, 2025 13:33
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.

2 participants