public string DirectionAsString(RelOpDirection dir) { if(dir == RelOpDirection.Greater) return ">"; else if(dir == RelOpDirection.GreaterEqual) return ">="; else if(dir == RelOpDirection.Smaller) return "<"; else if(dir == RelOpDirection.SmallerEqual) return "<="; else return "UNDEFINED"; }
public SequenceForIndexAccessOrdering(SequenceVariable var, bool ascending, String indexName, SequenceExpression expr, RelOpDirection dir, SequenceExpression expr2, RelOpDirection dir2, Sequence seq, List<SequenceVariable> variablesFallingOutOfScopeOnLeavingFor) : base(seq, SequenceType.ForIndexAccessOrdering) { Var = var; Ascending = ascending; IndexName = indexName; Expr = expr; Direction = dir; Expr2 = expr2; Direction2 = dir2; VariablesFallingOutOfScopeOnLeavingFor = variablesFallingOutOfScopeOnLeavingFor; }