The [AlgebraicType] of this scalar expression
(&self)
| 426 | |
| 427 | /// The [AlgebraicType] of this scalar expression |
| 428 | pub fn ty(&self) -> &AlgebraicType { |
| 429 | match self { |
| 430 | Self::BinOp(..) | Self::LogOp(..) => &AlgebraicType::Bool, |
| 431 | Self::Value(_, ty) | Self::Param(_, ty) | Self::Field(FieldProject { ty, .. }) => ty, |
| 432 | } |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | /// A typed qualified field projection |