void outputVariables(List<VarHolder> vars){
  boolean first=true;
  for (  VarHolder vh : vars) {
    if (vh.name != null) {
      if (first) {
        gen.out("var ",vh.name);
        first=false;
      }
 else {
        gen.out(",",vh.name);
      }
    }
 else     if (vh.destr != null && vh.vars != null) {
      for (      Tree.Variable v : vh.vars) {
        final String vname=names.name(v.getDeclarationModel());
        if (first) {
          gen.out("var ",vname);
          first=false;
        }
 else {
          gen.out(",",vname);
        }
      }
    }
  }
  if (!first) {
    gen.endLine(true);
  }
}

void outputVariables ( List < VarHolder > vars ) { boolean first = true ; for ( VarHolder vh : vars ) { if ( vh . name != null ) { if ( first ) { gen . out ( "var " , vh . name ) ; first = false ; } else { gen . out ( "," , vh . name ) ; } } else if ( vh . destr != null && vh . vars != null ) { for ( Tree . Variable v : vh . vars ) { final String vname = names . name ( v . getDeclarationModel ( ) ) ; if ( first ) { gen . out ( "var " , vname ) ; first = false ; } else { gen . out ( "," , vname ) ; } } } } if ( ! first ) { gen . endLine ( true ) ; } }
generates the declaration of all the variables that were gathered by garthervariables . useful when they weren ' t generated by that method .
