コード例 #1
0
ファイル: IfStatement.cs プロジェクト: renatotkr/Platform
 public IfStatement(
     BashExpression condition,
     Command[] then,
     Command[] elseThen = null)
 {
     Condition = condition;
     Then      = then;
     Else      = elseThen;
 }
コード例 #2
0
ファイル: IfStatement.cs プロジェクト: renatotkr/Platform
 public ElIfStatement(BashExpression condition, Command then)
 {
     Condition = condition ?? throw new ArgumentNullException(nameof(condition));
     Then      = then;
 }
コード例 #3
0
ファイル: IfStatement.cs プロジェクト: renatotkr/Platform
 public IfStatement(BashExpression condition, Command then)
 {
     Condition = condition;
     Then      = new[] { then };
 }
コード例 #4
0
 public BinaryExpression(BashExpression lhs, BashExpression rhs, BinaryExpressionType type)
 {
     Left  = lhs;
     Right = rhs;
     Type  = type;
 }
コード例 #5
0
 public static BinaryExpression Or(BashExpression lhs, BashExpression rhs)
 {
     return(new BinaryExpression(lhs, rhs, BinaryExpressionType.Or));
 }
コード例 #6
0
        // [ -r $1 ] && [ -s $1 ]

        public static BinaryExpression And(BashExpression lhs, BashExpression rhs)
        {
            return(new BinaryExpression(lhs, rhs, BinaryExpressionType.And));
        }