system/src/sc/lang/java/ArrayTypeDeclaration.java
public static ArrayTypeDeclaration create(LayeredSystem sys, Object compType, String arrayDims, Object dit) {
      int numInnerDims = 0;
      while (compType instanceof ArrayTypeDeclaration) {
         ArrayTypeDeclaration prevArr = (ArrayTypeDeclaration) compType;
         compType = prevArr.getComponentType();
         numInnerDims++;
      }
      arrayDims = arrayDims + StringUtil.repeat("[]", numInnerDims);
      return new ArrayTypeDeclaration(sys, dit, compType, arrayDims);
   }
/** Handles nested array inside of array */
Handles nested array inside of array
Handles nested array inside of array
public static ArrayTypeDeclaration create(LayeredSystem sys, Object compType, String arrayDims, Object dit) {
      int numInnerDims = 0;
      while (compType instanceof ArrayTypeDeclaration) {
         ArrayTypeDeclaration prevArr = (ArrayTypeDeclaration) compType;
         compType = prevArr.getComponentType();
         numInnerDims++;
      }
      arrayDims = arrayDims + StringUtil.repeat("[]", numInnerDims);
      return new ArrayTypeDeclaration(sys, dit, compType, arrayDims);
   }
public static ArrayTypeDeclaration create ( LayeredSystem sys , Object compType , String arrayDims , Object dit ) { int numInnerDims = 0 ; while ( compType instanceof ArrayTypeDeclaration ) { ArrayTypeDeclaration prevArr = ( ArrayTypeDeclaration ) compType ; compType = prevArr . getComponentType ( ) ; numInnerDims ++ ; } arrayDims = arrayDims + StringUtil . repeat ( "[]" , numInnerDims ) ; return new ArrayTypeDeclaration ( sys , dit , compType , arrayDims ) ; }
Handles nested array inside of array
Handles nested array inside of array