Пример #1
0
        /// <summary>
        /// accessor_idx                                = "[" line_expr "]"
        /// </summary>
        private GetIndexNode parseAccessorIdx()
        {
            if (!check(LexemType.SquareOpen))
                return null;

            var node = new GetIndexNode();
            node.Index = ensure(parseLineExpr, ParserMessages.IndexExpressionExpected);
            ensure(LexemType.SquareClose, ParserMessages.SymbolExpected, ']');
            return node;
        }
Пример #2
0
 protected bool Equals(GetIndexNode other)
 {
     return base.Equals(other)
            && RefArgumentRequired.Equals(other.RefArgumentRequired)
            && PointerRequired.Equals(other.PointerRequired);
 }