Esempio n. 1
0
 protected bool Equals(NewObjectArrayNode other)
 {
     return Equals(TypeSignature, other.TypeSignature) && Type == other.Type && Equals(Size, other.Size);
 }
Esempio n. 2
0
 protected bool Equals(NewObjectArrayNode other)
 {
     return(Equals(TypeSignature, other.TypeSignature) && Type == other.Type && Equals(Size, other.Size));
 }
Esempio n. 3
0
        /// <summary>
        /// new_objarray_line                          = type "[" line_expr "]"
        /// </summary>
        private NewObjectArrayNode parseNewObjArrayLine()
        {
            var type = attempt(parseType);
            if (type == null)
                return null;

            if (!check(LexemType.SquareOpen))
                return null;

            var node = new NewObjectArrayNode();
            node.TypeSignature = type;
            node.Size = ensure(parseLineExpr, ParserMessages.ExpressionExpected);

            ensure(LexemType.SquareClose, ParserMessages.SymbolExpected, "]");

            return node;
        }