Skip to content

Overloads of WriteNode and WiteNodes that take expressions #49

Open

Description

@zspitz

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.

Activity

  1. added this to the 3.5 milestone on Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions