public override SyntaxNode VisitMemberAccessExpression(MemberAccessExpressionSyntax node) { bool oldAlwaysSimplify = this.alwaysSimplify; if (!this.alwaysSimplify) { this.alwaysSimplify = node.HasAnnotation(Simplifier.Annotation); } var result = SimplifyExpression( node, newNode: base.VisitMemberAccessExpression(node), simplifier: SimplifyName); this.alwaysSimplify = oldAlwaysSimplify; return result; }
public override SyntaxNode VisitMemberAccessExpression(MemberAccessExpressionSyntax node) { var oldAlwaysSimplify = this.alwaysSimplify; if (!this.alwaysSimplify) { this.alwaysSimplify = node.HasAnnotation(Simplifier.Annotation); } var result = SimplifyExpression( node, newNode: base.VisitMemberAccessExpression(node), simplifier: s_simplifyName); this.alwaysSimplify = oldAlwaysSimplify; return(result); }