Closed goffrie closed 4 months ago
Adds new codegen for messages with extension ranges defined, and generates extension fields as constants.
The syntax is m.get_extension(extensions::MY_EXTENSION), which can return Err if parsing fails. This is not super ergonomic.
m.get_extension(extensions::MY_EXTENSION)
Err
Extensions are read-only for now.
Adds new codegen for messages with extension ranges defined, and generates extension fields as constants.
The syntax is
m.get_extension(extensions::MY_EXTENSION)
, which can returnErr
if parsing fails. This is not super ergonomic.Extensions are read-only for now.