thrift_generator_names (thrift_generator v0.7.0)

View Source

Identifier derivation shared by the semantic checks and the emitters.

IDL names surface in generated Erlang unchanged where the wire sees them (struct_info keys, enum atoms, field-name binaries); every derived identifier — record tags, type aliases, helper function names, constant macros — goes through snake/1, so an IDL InvoiceBankAccount becomes the readable invoice_bank_account instead of the lowercased mush invoicebankaccount.

Summary

Functions

Lowers a CamelCase/Snake/mixed identifier to snake_case.

Functions

snake(Name)

-spec snake(binary()) -> binary().

Lowers a CamelCase/Snake/mixed identifier to snake_case.