This project is read-only.


Common base for lambda syntax nodes


It seems like SimpleLambdaExpressionSyntax and ParenthesizedLambdaExpressionSyntax should share a common base class since they both have ArrowToken, AsyncKeyword, and Body properties. It would also be nice if the base had an IEnumerable<ParameterSyntax> property or method for enumerating over all parameters for the expression.


VSadov wrote Nov 20, 2014 at 10:01 PM

Such approach (abstract base) was considered in this an several other cases, but at the end it would add more types to the set of syntax node types, which is already fairly large, so it was decided not worth it.