Exemplo n.º 1
0
        public override void PrintLeft(TextWriter Writer)
        {
            if (IsGlobal)
            {
                Writer.Write("::operator ");
            }

            Writer.Write("new ");

            if (IsArrayExpression)
            {
                Writer.Write("[] ");
            }

            if (Expressions.Nodes.Count != 0)
            {
                Writer.Write("(");
                Expressions.Print(Writer);
                Writer.Write(")");
            }

            TypeNode.Print(Writer);

            if (Initializers.Nodes.Count != 0)
            {
                Writer.Write("(");
                Initializers.Print(Writer);
                Writer.Write(")");
            }
        }
Exemplo n.º 2
0
        public override void PrintLeft(TextWriter writer)
        {
            if (_isGlobal)
            {
                writer.Write("::operator ");
            }

            writer.Write("new ");

            if (_isArrayExpression)
            {
                writer.Write("[] ");
            }

            if (_expressions.Nodes.Count != 0)
            {
                writer.Write("(");
                _expressions.Print(writer);
                writer.Write(")");
            }

            _typeNode.Print(writer);

            if (_initializers.Nodes.Count != 0)
            {
                writer.Write("(");
                _initializers.Print(writer);
                writer.Write(")");
            }
        }