public override LuaSyntaxNode VisitArrayRankSpecifier(ArrayRankSpecifierSyntax node) { LuaArrayRankSpecifierSyntax rankSpecifier = new LuaArrayRankSpecifierSyntax(node.Rank); foreach (var size in node.Sizes) { var expression = (LuaExpressionSyntax)size.Accept(this); rankSpecifier.Sizes.Add(expression); } return(rankSpecifier); }
public LuaArrayTypeAdapterExpressionSyntax(LuaExpressionSyntax typeExpression, LuaArrayRankSpecifierSyntax rankSpecifier) { TypeExpression = typeExpression ?? throw new ArgumentNullException(nameof(typeExpression)); RankSpecifier = rankSpecifier ?? throw new ArgumentNullException(nameof(rankSpecifier)); }