Skip to content

fix(deps): update module github.com/odvcencio/gotreesitter to v0.20.9#186

Merged
omarluq merged 1 commit into
mainfrom
renovate/github.com-odvcencio-gotreesitter-0.x
Jul 2, 2026
Merged

fix(deps): update module github.com/odvcencio/gotreesitter to v0.20.9#186
omarluq merged 1 commit into
mainfrom
renovate/github.com-odvcencio-gotreesitter-0.x

Conversation

@renovate

@renovate renovate Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/odvcencio/gotreesitter v0.20.8v0.20.9 age confidence

Release Notes

odvcencio/gotreesitter (github.com/odvcencio/gotreesitter)

v0.20.9

Compare Source

Patch release recovering C# large-namespace method/type declarations and the Swift ternary/conditional operator, both via post-parse source recovery passes, plus a CI stability fix.

Fixed

  • C#: Large C# files whose class body is shredded by a cumulative GLR failure (e.g. Newtonsoft.Json's JsonTextReader.cs / JsonReader.cs) now recover their method_declaration nodes instead of yielding only a comment-filled namespace shell. Namespace recovery now falls back, when the child-based pass surfaces no method, to a per-member bounded source reconstruction. JsonTextReader.cs now recovers 68 methods (was 0) and JsonReader.cs 41 (was 0). Fixes #​136 (#​138). Thanks @​richardwooding for the report, repro, and the fix.
  • Swift: the ternary/conditional operator (cond ? a : b) now recovers instead of dropping ? a : b into an ERROR node in every position — previously any function containing a ternary lost its whole parse. A post-parse recovery pass reconstructs the ternary_expression node by reparsing the source with the ? if_true : if_false tail blanked so the condition parses in place, then splicing a synthesised node back in with the upstream condition/if_true/if_false layout. The rewrite is accepted only when the result is error-free and byte-faithful, so non-ternary code is never affected. Fixes #​135 (#​137). Thanks @​richardwooding for the report and the fix.

CI

  • TestCSharpLargeShreddedNamespaceRecoversMethods now skips under go test -race: the per-member bounded recovery reparses each class member as its own small GLR parse, which normally finishes well inside the parser's timeout budget, but race-detector instrumentation slows the same work enough to trip the parser's internal wall-clock timeout. Non-race coverage keeps the full recovery assertions.

Looking ahead

A root-cause fix for Swift's grammar (native ternary parsing via a regenerated grammar blob/table, rather than a post-parse recovery pass) is in progress on the parser-generalization campaign branch and will ship in a future release.

Full Changelog: odvcencio/gotreesitter@v0.20.8...v0.20.9


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.52%. Comparing base (9e4071b) to head (9a921fd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #186      +/-   ##
==========================================
- Coverage   83.54%   83.52%   -0.03%     
==========================================
  Files         287      287              
  Lines       23204    23204              
==========================================
- Hits        19386    19380       -6     
- Misses       2652     2656       +4     
- Partials     1166     1168       +2     
Flag Coverage Δ
unittests 83.52% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@omarluq omarluq merged commit 289ba47 into main Jul 2, 2026
15 checks passed
@omarluq omarluq deleted the renovate/github.com-odvcencio-gotreesitter-0.x branch July 2, 2026 23:23
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.

1 participant