Move Expression::apply into a visitor class
Move lambdaInlineCost to use the apply visitor
Move lambdaSetParent and lambdaCheckForNestedRef to use the apply visitor
Move hasSideEffect to use the apply visitor
Merge pull request #3186 from yebblies/apply

[DDMD] [refactor] Move Expression::apply into a visitor class