Lines Matching refs:Constant
87 return Constant(1 if val else 0)
89 return Constant(val)
164 if isinstance(lhs, Constant) and isinstance(rhs, Constant):
165 return Constant(ast.literal_eval(lhs + self.operator + rhs))
167 if isinstance(self.lhs, Constant):
175 return Constant(0)
180 if isinstance(rhs, Constant):
185 return Constant(0)
232 if isinstance(cond, Constant):
279 if isinstance(lhs, Constant) and isinstance(rhs, Constant):
282 return Constant(0)
283 Constant(ast.literal_eval(f'{lhs} / {rhs}'))
284 return Constant(ast.literal_eval(f'{self.fn}({lhs}, {rhs})'))
335 class Constant(Expression): class
356 return isinstance(other, Constant) and self.value == other.value