Skip to content

SimpleParameterSubstituter and ParameterSubstituter should not be visitors #33

@myk0la999

Description

@myk0la999

If you would try to visit LambdaExpression trying to pass constant as replacement then visitor would try to replace lambda parameter with constant and that would probably trigger an exception. So Those should not be Visitors.

So if you pass LambdaExpression (x, y) => x + y as an input and x -> k, y -> 3 as replacements then it would try to do this:
(k, 3) => k + 3 which would probably cause exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions