Ejemplo n.º 1
0
 Declarator MakeArrayDeclarator(Declarator?left, TypeQualifiers tq, Expression?len, bool isStatic)
 {
     if (left != null && left.StrongBinding)
     {
         var i = left.InnerDeclarator;
         var a = new ArrayDeclarator(i, len);
         left.InnerDeclarator = a;
         return(left);
     }
     else
     {
         return(new ArrayDeclarator(left, len));
     }
 }
Ejemplo n.º 2
0
        Declarator MakeArrayDeclarator(Declarator left, TypeQualifiers tq, Expression len, bool isStatic)
        {
            var a = new ArrayDeclarator();

            a.LengthExpression = len;

            if (left.StrongBinding)
            {
                var i = left.InnerDeclarator;
                a.InnerDeclarator    = i;
                left.InnerDeclarator = a;
                return(left);
            }
            else
            {
                a.InnerDeclarator = left;
                return(a);
            }
        }
Ejemplo n.º 3
0
 public virtual void VisitArrayDeclarator(ArrayDeclarator node) => DefaultVisit(node);