1818public class TypeDecl extends CommentableCode {
1919 public boolean exportDecl ;
2020
21- public final String symbol ;
21+ public String name ;
2222 @ NotNull
2323 public List <? extends BaseType > symbolVariables ;
2424
@@ -27,23 +27,23 @@ public class TypeDecl extends CommentableCode {
2727 @ NotNull
2828 public BaseType .FormatType typeFormat ;
2929
30- public TypeDecl (String symbol , @ NotNull BaseType type ) {
31- this (symbol , Collections .emptyList (), type );
30+ public TypeDecl (String name , @ NotNull BaseType type ) {
31+ this (name , Collections .emptyList (), type );
3232 }
3333
34- public TypeDecl (String symbol , @ NotNull List <? extends BaseType > symbolVariables , @ NotNull BaseType type ) {
35- this (true , symbol , symbolVariables , type , BaseType .FormatType .INPUT );
34+ public TypeDecl (String name , @ NotNull List <? extends BaseType > symbolVariables , @ NotNull BaseType type ) {
35+ this (true , name , symbolVariables , type , BaseType .FormatType .INPUT );
3636 }
3737
3838 public TypeDecl (
3939 boolean exportDecl ,
40- String symbol ,
40+ String name ,
4141 @ NotNull List <? extends BaseType > symbolVariables ,
4242 @ NotNull BaseType type ,
4343 @ NotNull BaseType .FormatType typeFormat
4444 ) {
4545 this .exportDecl = exportDecl ;
46- this .symbol = symbol ;
46+ this .name = name ;
4747 this .symbolVariables = Asser .tNotNull (symbolVariables , "symbolVariables" );
4848 this .type = Asser .tNotNull (type , "type" );
4949 this .typeFormat = Asser .tNotNull (typeFormat , "typeFormat" );
@@ -65,7 +65,7 @@ public List<String> formatRaw(Declaration declaration) {
6565 if (exportDecl ) {
6666 builder .append ("export " );
6767 }
68- builder .append ("type " ).append (symbol );
68+ builder .append ("type " ).append (name );
6969 if (!symbolVariables .isEmpty ()) {
7070 builder .append (Types .join (", " , "<" , ">" , symbolVariables )
7171 .line (declaration , BaseType .FormatType .VARIABLE ));
0 commit comments