コード例 #1
0
ファイル: Sequence.cs プロジェクト: jblomer/GrGen.NET
 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";
 }
コード例 #2
0
ファイル: Sequence.cs プロジェクト: jblomer/GrGen.NET
 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;
 }