system/src/sc/parser/NestedParselet.java
private boolean generateIncremental() {
      int numParselets = parselets.size();
      boolean first = true;
      boolean isArray = false;

      for (int i = 0; i < numParselets; i++) {
         if (parameterMapping[i] == ParameterMapping.SKIP)
            continue;

         if (first) {
            isArray = parselets.get(i).getSemanticValueIsArray();
            first = false;
         }
         else if (isArray != parselets.get(i).getSemanticValueIsArray())
            return false;
      }
      return true;
   }
/**
    * Returns true if we must regenerate the entire parse node for this parselet.  Specifically, if
    * we have one scalar and one array element, when we insert a new array element we have to start from scratch.
    */
Returns true if we must regenerate the entire parse node for this parselet.  Specifically, if
we have one scalar and one array element, when we insert a new array element we have to start from scratch.
Returns true if we must regenerate the entire parse node for this parselet . Specifically if we have one scalar and one array element when we insert a new array element we have to start from scratch .
private boolean generateIncremental() {
      int numParselets = parselets.size();
      boolean first = true;
      boolean isArray = false;
      for (int i = 0; i < numParselets; i++) {
         if (parameterMapping[i] == ParameterMapping.SKIP)
            continue;
         if (first) {
            isArray = parselets.get(i).getSemanticValueIsArray();
            first = false;
         }
         else if (isArray != parselets.get(i).getSemanticValueIsArray())
            return false;
      }
      return true;
   }
private boolean generateIncremental ( ) { int numParselets = parselets . size ( ) ; boolean first = true ; boolean isArray = false ; for ( int i = 0 ; i < numParselets ; i ++ ) { if ( parameterMapping [ i ] == ParameterMapping . SKIP ) continue ; if ( first ) { isArray = parselets . get ( i ) . getSemanticValueIsArray ( ) ; first = false ; } else if ( isArray != parselets . get ( i ) . getSemanticValueIsArray ( ) ) return false ; } return true ; }
Returns true if we must regenerate the entire parse node for this parselet.
Returns true if we must regenerate the entire parse node for this parselet .