Skip to content

Comments

Fix diagnostic messages and add parser documentation#13

Merged
quinchs merged 3 commits intodiscord-net:mainfrom
M1tsumi:main
Jan 5, 2026
Merged

Fix diagnostic messages and add parser documentation#13
quinchs merged 3 commits intodiscord-net:mainfrom
M1tsumi:main

Conversation

@M1tsumi
Copy link
Contributor

@M1tsumi M1tsumi commented Jan 3, 2026

  • Fixed DC0003 diagnostic to show 'Value out of range' instead of 'Type mismatch'
  • Improved message format to include property name and constraint details
  • Added XML documentation for IsIncremental explaining incremental parsing behavior
  • Added XML documentation for Width property clarifying direct vs tree-wide counting
  • Replaced empty string literals with string.Empty to avoid .NET 9.0.308 compiler crash

mreow and others added 2 commits January 3, 2026 01:43
- Fixed DC0003 diagnostic to show 'Value out of range' instead of 'Type mismatch'
- Improved message format to include property name and constraint details
- Added XML documentation for IsIncremental explaining incremental parsing behavior
- Added XML documentation for Width property clarifying direct vs tree-wide counting
- Replaced empty string literals with string.Empty to avoid .NET 9.0.308 compiler crash
Fix diagnostic messages and add parser documentation
@M1tsumi M1tsumi requested a review from quinchs January 5, 2026 03:53
@M1tsumi
Copy link
Contributor Author

M1tsumi commented Jan 5, 2026

Thanks for the quick review, and I 100% see the issue and thats my bad on not catching it beforehand. I replaced the width documentation with /// <inheritdoc/> and updated the OutOfRange diagnostic to use '{property}' must be {constraint} let me know if theres anything else.

@quinchs quinchs merged commit 06de880 into discord-net:main Jan 5, 2026
2 checks passed
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