Exemplo n.º 1
0
        /// <summary>
        /// new_object_line                             = type invoke_line_args
        /// </summary>
        private NewObjectNode parseNewObjectLine()
        {
            var type = attempt(parseType);
            if (type == null)
                return null;

            var args = parseInvokeLineArgs().ToList();
            if (args.Count == 0)
                return null;

            var node = new NewObjectNode();
            node.TypeSignature = type;
            node.Arguments = args;
            return node;
        }
Exemplo n.º 2
0
 protected bool Equals(NewObjectNode other)
 {
     return base.Equals(other) && Equals(TypeSignature, other.TypeSignature);
 }