Boo.Lang.Compiler.Steps.ExpandDuckTypedExpressions.LeaveUnaryExpression C# (CSharp) Метод

LeaveUnaryExpression() публичный Метод

public LeaveUnaryExpression ( UnaryExpression node ) : void
node Boo.Lang.Compiler.Ast.UnaryExpression
Результат void
        public override void LeaveUnaryExpression(UnaryExpression node)
        {
            if (IsDuckTyped(node.Operand) &&
                node.Operator == UnaryOperatorType.UnaryNegation)
            {
                MethodInvocationExpression mie = CodeBuilder.CreateMethodInvocation(
                    node.LexicalInfo,
                    RuntimeServices_InvokeUnaryOperator,
                    CodeBuilder.CreateStringLiteral(
                    AstUtil.GetMethodNameForOperator(node.Operator)),
                    node.Operand);

                Replace(mie);
            }
        }