Boo.Lang.Compiler.Ast.AstNodePredicates.IsTargetOfMethodInvocation C# (CSharp) Method

IsTargetOfMethodInvocation() public static method

public static IsTargetOfMethodInvocation ( this node ) : bool
node this
return bool
        public static bool IsTargetOfMethodInvocation(this Expression node)
        {
            var parentExpression = node.ParentNode as MethodInvocationExpression;
            if (parentExpression == null)
                return false;
            return node == parentExpression.Target;
        }