-
Notifications
You must be signed in to change notification settings - Fork 58
[Feature] Implement CustomRecursiveStringConvertible #687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 Augment PR SummarySummary: This PR introduces a package-scoped, SwiftUI-style “recursive description” facility to produce stable, XML-like debug output for view/graph structures. Changes:
Technical Notes: Output is deterministic via attribute sorting and escaping; “rounded” mode normalizes floating-point noise to improve test stability. 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| .joined(separator: "_") | ||
| .escapeXML() | ||
| let mark = "\(indentString)<\(escapedName)\(attributeString)" | ||
| if descriptionChildren.isEmpty { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The decision to emit a self-closing tag is based on descriptionChildren.isEmpty before filtering hideFromDescription; if all children are hidden you’ll currently emit an open/close pair with no body. Consider basing this on the set of visible children to avoid surprising output differences in that edge case.
🤖 Was this useful? React with 👍 or 👎
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #687 +/- ##
===========================================
- Coverage 28.45% 14.25% -14.20%
===========================================
Files 586 562 -24
Lines 35504 33064 -2440
===========================================
- Hits 10101 4712 -5389
- Misses 25403 28352 +2949 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.