class Proto::Generator::FileGenerator

Included Modules

Defined in:

proto/generator/file_generator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file : Bootstrap::FileDescriptorProto, index : TypeIndex, type_resolver : TypeNameResolver | Nil = nil) #

[View source]

Instance Method Detail

def generate : String #

Generate and return the Crystal source code.


[View source]
def output_name : String #

Return the output file name for the given proto file.


[View source]