Skip to content
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

Overloads of WriteNode and WiteNodes that take expressions #49

Open
zspitz opened this issue Sep 24, 2020 · 0 comments
Open

Overloads of WriteNode and WiteNodes that take expressions #49

zspitz opened this issue Sep 24, 2020 · 0 comments
Milestone

Comments

@zspitz
Copy link
Owner

zspitz commented Sep 24, 2020

Currently, simple calls to WriteNode and WriteNodes look like this:

WriteNode("SwitchValue", expr.SwitchValue);
WriteNodes("TestValues", switchCase.TestValues);

We could have an overload that takes an expression, then calls would look like this:

WriteNode(() => expr.SwitchValue);
WriteNodes(() => switchCase.TestValues);

and resolve the path by parsing the expression tree.

We'd want to investigate potential costs of constructing these expression trees at runtime.

@zspitz zspitz added this to the 3.5 milestone Jun 27, 2021
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

No branches or pull requests

1 participant