public virtual void VisitArrayType(ArrayTypeSyntax node) { DefaultVisit(node); }
public static ArrayCreationExpressionSyntax ArrayCreationExpression(ArrayTypeSyntax type = null, InitializerExpressionSyntax initializer = null) { var result = new ArrayCreationExpressionSyntax(); result.Type = type; result.Initializer = initializer; return result; }
public static ArrayTypeSyntax ArrayType(string elementType = null, IEnumerable<ArrayRankSpecifierSyntax> rankSpecifiers = null) { var result = new ArrayTypeSyntax(); if (elementType != null) result.ElementType = ParseName(elementType); if (rankSpecifiers != null) result.RankSpecifiers.AddRange(rankSpecifiers); return result; }