Method: Protobuf::Generators::ExtensionGenerator#compile

Defined in:
lib/protobuf/generators/extension_generator.rb

#compileObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/protobuf/generators/extension_generator.rb', line 14

def compile
  run_once(:compile) do
    print_class(@message_type, :message) do
      group = GroupGenerator.new(current_indent)
      group.add_extension_fields(@field_descriptors)
      group.order = [ :extension_field ]
      print group.to_s
    end
  end
end