protected virtual SrndQuery GetDistanceQuery( IEnumerable<SrndQuery> queries, bool infix, Token dToken, bool ordered) { DistanceQuery dq = new DistanceQuery(queries, infix, GetOpDistance(dToken.image), dToken.image, ordered); CheckDistanceSubQueries(dq, dToken.image); return dq; }
protected static void CheckDistanceSubQueries(DistanceQuery distq, string opName) { string m = distq.DistanceSubQueryNotAllowed(); if (m != null) { throw new ParseException("Operator " + opName + ": " + m); } }