def accept(cls, expr): from query import util return util.contain(expr, ['selectList']) or util.contain( expr, ['query', 'fetch'])
def accept(cls, expr): from query import util return util.contain(expr, ['whenList', 'thenList', 'elseExpr'])
def accept(cls, expr): from query import util return util.contain(expr, ['operator', 'operands'])
def accept(cls, expr): from query import util return util.contain(expr, ['scale', 'isExact', 'value', 'typeName', 'prec']) or \ (util.contain(expr, ['value', 'typeName']) and isinstance(expr['value'], dict)) or \ (util.contain(expr, ['typeName']) and str(expr['typeName']).lower() == 'null')
def accept(cls, expr): from query import util return util.contain(expr, ['names']) and expr.get('key') == 'from'