Пример #1
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        public virtual void VisitAnonymousDelegateExpression(AnonymousDelegateExpression expression)
        {
            VisitAbstractExpression(expression);
        }
Пример #2
0
 private static void WriteLambda(CodeTextBuilder code, AnonymousDelegateExpression expression)
 {
     JavaScriptFunctionWriter.WriteArrowFunction(code, expression.Signature, expression.Body);
 }
Пример #3
0
        public virtual AnonymousDelegateExpression RewriteAnonymousDelegateExpression(AnonymousDelegateExpression expression)
        {
            var newBody = (BlockStatement)expression.Body.AcceptRewriter(this);

            if (newBody != expression.Body)
            {
                return(new AnonymousDelegateExpression {
                    Bindings = new BindingCollection(expression.Bindings),
                    Body = newBody,
                    Signature = expression.Signature,
                    Type = expression.Type
                });
            }

            return(expression);
        }