コード例 #1
0
 public static JsBinaryExpression LogicalOr(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.LogicalOr, left, right));
 }
コード例 #2
0
 public static JsUnaryExpression PostfixMinusMinus(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.PostfixMinusMinus, operand));
 }
コード例 #3
0
 public static JsUnaryExpression Void(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.Void, operand));
 }
コード例 #4
0
 public static JsUnaryExpression TypeOf(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.TypeOf, operand));
 }
コード例 #5
0
 public static JsUnaryExpression Positive(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.Positive, operand));
 }
コード例 #6
0
 /// <summary>
 /// Creates an expression to access a member. If the member is a valid JS identifier, will return target.member, otherwise returns traget["member"].
 /// </summary>
 public static JsExpression Member(JsExpression target, string member)
 {
     return(member.IsValidJavaScriptIdentifier() ? (JsExpression)MemberAccess(target, member) : Index(target, JsExpression.String(member)));
 }
コード例 #7
0
 public static JsNewExpression New(JsExpression constructor, params JsExpression[] arguments)
 {
     return(New(constructor, (IEnumerable <JsExpression>)arguments));
 }
コード例 #8
0
 public static JsBinaryExpression Index(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.Index, left, right));
 }
コード例 #9
0
 public static JsBinaryExpression DivideAssign(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.DivideAssign, left, right));
 }
コード例 #10
0
 public static JsBinaryExpression Multiply(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.Multiply, left, right));
 }
コード例 #11
0
 public static JsBinaryExpression NotSame(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.NotSame, left, right));
 }
コード例 #12
0
 public static JsBinaryExpression Add(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.Add, left, right));
 }
コード例 #13
0
 public static JsBinaryExpression Equal(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.Equal, left, right));
 }
コード例 #14
0
 public static JsBinaryExpression Greater(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.Greater, left, right));
 }
コード例 #15
0
 public static JsInvocationExpression Invocation(JsExpression method, params JsExpression[] arguments)
 {
     return(Invocation(method, (IEnumerable <JsExpression>)arguments));
 }
コード例 #16
0
 public static JsBinaryExpression ModuloAssign(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.ModuloAssign, left, right));
 }
コード例 #17
0
 public static JsMemberAccessExpression MemberAccess(JsExpression target, string member)
 {
     return(new JsMemberAccessExpression(target, member));
 }
コード例 #18
0
 public static JsBinaryExpression SubtractAssign(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.SubtractAssign, left, right));
 }
コード例 #19
0
 public static JsNewExpression New(JsExpression constructor, IEnumerable <JsExpression> arguments)
 {
     return(new JsNewExpression(constructor, arguments));
 }
コード例 #20
0
 public static JsBinaryExpression LeftShiftAssign(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.LeftShiftAssign, left, right));
 }
コード例 #21
0
 public static JsUnaryExpression Unary(ExpressionNodeType nodeType, JsExpression operand)
 {
     return(new JsUnaryExpression(nodeType, operand));
 }
コード例 #22
0
 public static JsBinaryExpression RightShiftUnsignedAssign(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.RightShiftUnsignedAssign, left, right));
 }
コード例 #23
0
 public static JsUnaryExpression LogicalNot(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.LogicalNot, operand));
 }
コード例 #24
0
 public static JsBinaryExpression BitwiseXorAssign(JsExpression left, JsExpression right)
 {
     return(Binary(ExpressionNodeType.BitwiseXorAssign, left, right));
 }
コード例 #25
0
 public static JsUnaryExpression PrefixPlusPlus(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.PrefixPlusPlus, operand));
 }
コード例 #26
0
 public static JsConditionalExpression Conditional(JsExpression test, JsExpression truePart, JsExpression falsePart)
 {
     return(new JsConditionalExpression(test, truePart, falsePart));
 }
コード例 #27
0
 public static JsUnaryExpression Delete(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.Delete, operand));
 }
コード例 #28
0
 public static JsInvocationExpression Invocation(JsExpression method, IEnumerable <JsExpression> arguments)
 {
     return(new JsInvocationExpression(method, arguments));
 }
コード例 #29
0
 public static JsUnaryExpression BitwiseNot(JsExpression operand)
 {
     return(Unary(ExpressionNodeType.BitwiseNot, operand));
 }
コード例 #30
0
 public static JsBinaryExpression Binary(ExpressionNodeType nodeType, JsExpression left, JsExpression right)
 {
     return(new JsBinaryExpression(nodeType, left, right));
 }