You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix thread safety, reduce duplication, improve error context, add tests and XML docs
- Fix race condition in RoslynTokenExpressionProvider: volatile + Interlocked.Exchange
for __runtimeContext, capture context locally in GetTokenExpression/Compile
- Extract shared ParseConditionalToken in TokenParser to eliminate duplicated
ParseIfToken/ParseWhileToken logic
- Add TokenId property to TemplateException for error diagnostics; pass token.Id
from TokenProcessor error sites; preserve TemplateException re-throw in parser
- Add 17 new tests: edge cases (unmatched blocks, invalid identifiers, malformed
expressions), token style variants (SingleBrace, DollarBrace, PoundBrace),
and thread safety (concurrent caching, reset during concurrent use)
- Add XML documentation to all public API types and members
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments