示例#1
0
 private bool IsFullTextSearchCompatible(LqlObject lqlObject, LqlOperator lqlOperator)
 {
     return (lqlObject != LqlObject.Application && lqlObject != LqlObject.Fingerprint)
         && (lqlOperator == LqlOperator.Like || lqlOperator == LqlOperator.NotLike);
 }
示例#2
0
        private void ParseInCondition(LqlOperator inOperator)
        {
            _currentInMatchCondition = new MatchCondition();
            _currentInMatchCondition.Operator = inOperator;
            _currentInMatchCondition.Values = new List<string>();
            _currentInMatchCondition.Object = GetObject(_lookaheadFirst);
            DiscardToken();

            if (inOperator == LqlOperator.In)
                DiscardToken(TokenType.In);
            else if (inOperator == LqlOperator.NotIn)
                DiscardToken(TokenType.NotIn);
            
            DiscardToken(TokenType.OpenParenthesis);
            StringLiteralList(StringLiteralListType.InCondition);
            DiscardToken(TokenType.CloseParenthesis);

            _currentGroup.MatchConditions.Add(_currentInMatchCondition);
        }