コード例 #1
0
 protected override void _visit( JsJsonArrayExpression node )
 {
     if (node != null)
     {
         foreach ( JsExpression esp in node.Items )
         {
             visit( esp );
         }
     }
 }
コード例 #2
0
 protected virtual void _visit( JsJsonArrayExpression node )
 {
     throw new NotImplementedException( "JsJsonArrayExpression" );
 }
コード例 #3
0
        /***************************************************************************************************************************/
        /**************************************** 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;
        }