-
Notifications
You must be signed in to change notification settings - Fork 27
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
refactor!: switch Node
to enum-style
#23
Conversation
Node
to enum-styleNode
to enum-style
I see the remaining work checklist. I might give some of those a crack, in the coming week. |
9bc4610
to
650f2ad
Compare
Codecov Report
@@ Coverage Diff @@
## main #23 +/- ##
===========================================
- Coverage 84.74% 74.40% -10.34%
===========================================
Files 4 4
Lines 367 379 +12
===========================================
- Hits 311 282 -29
- Misses 56 97 +41
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
5a86c35
to
276c7a7
Compare
83971b7
to
fafba0e
Compare
Thanks, but it's already done. I'd be happy about a review tho. The node enum makes things slightly harder to access, but overall it feels more stable and rusty now I'd say. |
6b9f13b
to
419a465
Compare
Imma migrate part of my project to the |
Force-push implements |
This is very welcome. I'm already using it. |
Force-push renames Also adds |
makes sense. I was gonna suggest this. This may be futile by me, but Could the Maybe even pass EDIT: removed wrong EDIT: This kinda goes against what I said in the previous comment. EDIT: The striked sentence above isn't true as you can implement |
Right, I wonder tho, why would you prefer the |
Force-push also adds |
Yeah
I guess I am not considering And for Could you create a discussion for general architecture? |
Force-push renames
Did so here: #26
I feel like it's a tricky topic, but picked it up in the linked issue above. Happy to discuss that further.
Sounds interesting! I'd be interested to take a look once you publish something. |
Released as |
Goals
unwrap
node names/valuesNotes
NodeElementAttribute
/NodeElementChild
enums as it would complicate the API significantlyRemaining work
TryInto<T>
implementations on node types to get a specific syn expression for node values, such asTryInto<Expr::Lit> for NodeText
Feedback welcome.
Resolves #16, Resolves #15