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);
        }
예제 #2
0
 public LuaArrayTypeAdapterExpressionSyntax(LuaExpressionSyntax typeExpression, LuaArrayRankSpecifierSyntax rankSpecifier)
 {
     TypeExpression = typeExpression ?? throw new ArgumentNullException(nameof(typeExpression));
     RankSpecifier  = rankSpecifier ?? throw new ArgumentNullException(nameof(rankSpecifier));
 }