Skip to content

Commit

Permalink
Rename metadata templates
Browse files Browse the repository at this point in the history
Summary: I want them grouped together/alpabetically when I am browsing the file tree.

Reviewed By: yarikk

Differential Revision: D50528656

fbshipit-source-id: ad9154d85ed50351ec500ada4a8f5185cdc1440e
  • Loading branch information
echistyakov authored and facebook-github-bot committed Oct 23, 2023
1 parent e4a4675 commit bc20e97
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions thrift/compiler/generate/templates/go/metadata.go.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,28 @@ var _ = metadata.GoUnusedProtection__
var structMetadatas = []*{{program:metadata_qualifier}}ThriftStruct{
{{#program:structs}}
{{^struct:exception?}}
{{> metadata/struct_metadata}},
{{> metadata/thrift_metadata_struct}},
{{/struct:exception?}}
{{/program:structs}}
}

var exceptionMetadatas = []*{{program:metadata_qualifier}}ThriftException{
{{#program:structs}}
{{#struct:exception?}}
{{> metadata/exception_metadata}},
{{> metadata/thrift_metadata_exception}},
{{/struct:exception?}}
{{/program:structs}}
}

var enumMetadatas = []*{{program:metadata_qualifier}}ThriftEnum{
{{#program:enums}}
{{> metadata/enum_metadata}},
{{> metadata/thrift_metadata_enum}},
{{/program:enums}}
}

var serviceMetadatas = []*{{program:metadata_qualifier}}ThriftService{
{{#program:services}}
{{> metadata/service_metadata}},
{{> metadata/thrift_metadata_service}},
{{/program:services}}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
SetFields(
[]*{{program:metadata_qualifier}}ThriftField{
{{#struct:fields_sorted}}
{{> metadata/field_metadata}},
{{> metadata/thrift_metadata_field}},
{{/struct:fields_sorted}}
},
){{/struct:fields?}}
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
SetArguments(
[]*{{program:metadata_qualifier}}ThriftField{
{{#function:args}}
{{> metadata/field_metadata}},
{{> metadata/thrift_metadata_field}},
{{/function:args}}
},
){{/function:args?}}{{#function:exceptions?}}.
SetExceptions(
[]*{{program:metadata_qualifier}}ThriftField{
{{#function:exceptions}}
{{> metadata/field_metadata}},
{{> metadata/thrift_metadata_field}},
{{/function:exceptions}}
},
){{/function:exceptions?}}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[]*{{program:metadata_qualifier}}ThriftFunction{
{{#service:functions}}
{{#function:go_supported?}}
{{> metadata/function_metadata}},
{{> metadata/thrift_metadata_function}},
{{/function:go_supported?}}
{{/service:functions}}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
SetFields(
[]*{{program:metadata_qualifier}}ThriftField{
{{#struct:fields_sorted}}
{{> metadata/field_metadata}},
{{> metadata/thrift_metadata_field}},
{{/struct:fields_sorted}}
},
){{/struct:fields?}}

0 comments on commit bc20e97

Please sign in to comment.