protected void appendHeaderVarDecl(
      ImmutableList<? extends TemplateHeaderVarDefn> headerVars, StringBuilder sb) {

    for (TemplateHeaderVarDefn headerVar : headerVars) {
      sb.append("  {").append(getDeclName(headerVar));
      if (!headerVar.isRequired()) {
        sb.append("?");
      }
      sb.append(" ")
          .append(headerVar.name())
          .append(": ")
          .append(headerVar.hasType() ? headerVar.type() : headerVar.getTypeNode())
          .append("}");
      if (headerVar.desc() != null) {
        sb.append("  /** ").append(headerVar.desc()).append(" */");
      }
      sb.append("\n");
    }
  }
protected void appendHeaderVarDecl ( ImmutableList < ? extends TemplateHeaderVarDefn > headerVars , StringBuilder sb ) { for ( TemplateHeaderVarDefn headerVar : headerVars ) { sb . append ( "  {" ) . append ( getDeclName ( headerVar ) ) ; if ( ! headerVar . isRequired ( ) ) { sb . append ( "?" ) ; } sb . append ( " " ) . append ( headerVar . name ( ) ) . append ( ": " ) . append ( headerVar . hasType ( ) ? headerVar . type ( ) : headerVar . getTypeNode ( ) ) . append ( "}" ) ; if ( headerVar . desc ( ) != null ) { sb . append ( "  /** " ) . append ( headerVar . desc ( ) ) . append ( " */" ) ; } sb . append ( "\n" ) ; } }
Add the Soy template syntax that declares `headerVar` to the string builder.