示例#1
0
        public void Visit(ArrayCreateNode node)
        {
            var type = node.GetArrayType().Identifier.Replace("[]", "");

            source.Append("new " + type + "[");
            node.GetIndex().Visit(this);
            source.Append("]");
        }
示例#2
0
 public void Visit(ArrayCreateNode node)
 {
     visitor.OnVisit((n, v) =>
     {
         var r = n as ArrayCreateNode;
         if (r != null && r.GetArrayType() == node.GetArrayType())
         {
             Result = IsSameChildren(r, node);
         }
     });
     reference.Visit(visitor);
 }