//----------------------------------------------------------------------------------------------------------------------------------------------------- public virtual void VisitAnonymousDelegateExpression(AnonymousDelegateExpression expression) { VisitAbstractExpression(expression); }
private static void WriteLambda(CodeTextBuilder code, AnonymousDelegateExpression expression) { JavaScriptFunctionWriter.WriteArrowFunction(code, expression.Signature, expression.Body); }
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); }