Boo.Lang.Compiler.Ast.AstUtil.IsLhsOfInPlaceAddSubtract C# (CSharp) Méthode

IsLhsOfInPlaceAddSubtract() public static méthode

public static IsLhsOfInPlaceAddSubtract ( Expression node ) : bool
node Expression
Résultat bool
        public static bool IsLhsOfInPlaceAddSubtract(Expression node)
        {
            if (NodeType.BinaryExpression == node.ParentNode.NodeType)
            {
                BinaryExpression be = (BinaryExpression)node.ParentNode;
                if (node == be.Left)
                {
                    BinaryOperatorType op = be.Operator;
                    return op == BinaryOperatorType.InPlaceAddition ||
                            op == BinaryOperatorType.InPlaceSubtraction;
                }
            }
            return false;
        }