Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
lixitrixi committed Apr 11, 2024
1 parent 747334a commit 473221e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/conjure_core/src/ast/expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub enum Expression {

impl Expression {
pub fn bounds(&self, vars: &SymbolTable) -> Option<(i32, i32)> {
// TODO: (flm8) change this to return full Domains rather than just bounds
match self {
Expression::Reference(_, name) => vars.get(name).and_then(|v| v.domain.min_max_i32()),
Expression::Constant(_, Constant::Int(i)) => Some((*i, *i)),
Expand Down

0 comments on commit 473221e

Please sign in to comment.