public override SyntaxNode VisitObjectCreationExpression(ObjectCreationExpressionSyntax node) { if (IsChangeInObjectCreation) { return base.VisitObjectCreationExpression(node); } var found = FindListNode(node); if(found == null) { return base.VisitObjectCreationExpression(node); } ListToArrayReplacementRewriter rewriter = new ListToArrayReplacementRewriter(true); return rewriter.Visit(node); }
public override SyntaxNode VisitObjectCreationExpression(ObjectCreationExpressionSyntax node) { if (IsChangeInObjectCreation) { return(base.VisitObjectCreationExpression(node)); } var found = FindListNode(node); if (found == null) { return(base.VisitObjectCreationExpression(node)); } ListToArrayReplacementRewriter rewriter = new ListToArrayReplacementRewriter(true); return(rewriter.Visit(node)); }