Example #1
0
        private static State ParseBeforeMember(Reader r, IList <ExpressionNode> nodes)
        {
            var identifier = IdentifierParser.Parse(r);

            if (identifier != null)
            {
                nodes.Add(new PropertyAccessorNode(identifier));
                return(State.AfterMember);
            }

            return(State.End);
        }
Example #2
0
        private static State ParseStart(Reader r, IList <ExpressionNode> nodes)
        {
            if (ParseNot(r))
            {
                nodes.Add(new LogicalNotNode());
                return(State.Start);
            }
            else
            {
                var identifier = IdentifierParser.Parse(r);

                if (identifier != null)
                {
                    nodes.Add(new PropertyAccessorNode(identifier));
                    return(State.AfterMember);
                }
            }

            return(State.End);
        }