Example #1
0
        public IState Next(Token token)
        {
            if (token.TokenType == TokenType.Identifier)
            {
                var endValueAccess = new PropertyValueAccess {
                    Name = token.Content
                };
                _valueAccess.Append(endValueAccess);
                return(new IdentifierDotIdentifierState(_valueAccess, _builder));
            }

            throw new ParsingException(this, token);
        }