Browse Source

imported patch FIX-temporal-bound-printing.patch

accumulation-v4.7
Joachim Klein 8 years ago
committed by Joachim Klein
parent
commit
32ada06833
  1. 9
      prism/src/parser/ast/ExpressionTemporal.java

9
prism/src/parser/ast/ExpressionTemporal.java

@ -223,14 +223,7 @@ public class ExpressionTemporal extends Expression
s += operand1 + " ";
s += opSymbols[op];
if (op == R_I && bounds.hasDefaultBound()) {
TemporalOperatorBound bound = bounds.getDefaultBound();
if (!bound.hasLowerBound() && bound.hasUpperBound()) {
s += "<" + (bound.upperBoundIsStrict() ? "" : "=") + bound.getUpperBound();
} else {
s+=bound.toString();
}
} else if (bounds.hasBounds()) {
if (bounds.hasBounds()) {
s+=bounds.toString();
}
if (operand2 != null)

Loading…
Cancel
Save