protected override void _visit( JsJsonArrayExpression node ) { if (node != null) { foreach ( JsExpression esp in node.Items ) { visit( esp ); } } }
protected virtual void _visit( JsJsonArrayExpression node ) { throw new NotImplementedException( "JsJsonArrayExpression" ); }
/***************************************************************************************************************************/ /**************************************** Array Statement Utilities *******************************************************/ /***************************************************************************************************************************/ // example: [] public static JsInvocationExpression getEmptyArrayInvocationExpression() { JsInvocationExpression initer = new JsInvocationExpression(); initer.Arguments = new List<JsExpression>(); initer.Member = new JsExpression(); initer.OmitParanthesis = true; JsJsonArrayExpression args = new JsJsonArrayExpression(); args.Items = new List<JsExpression>(); initer.Arguments.Add(args); return initer; }