public virtual void VisitArrayType(ArrayTypeSyntax node)
 {
     DefaultVisit(node);
 }
Beispiel #2
0
        public static ArrayCreationExpressionSyntax ArrayCreationExpression(ArrayTypeSyntax type = null, InitializerExpressionSyntax initializer = null)
        {
            var result = new ArrayCreationExpressionSyntax();

            result.Type = type;
            result.Initializer = initializer;

            return result;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 public virtual void VisitArrayType(ArrayTypeSyntax node)
 {
     DefaultVisit(node);
 }