class Proto::Generator::TypeIndex

Overview

TypeIndex builds a flat index of all types defined in the proto files being compiled, keyed by fully-qualified proto name (e.g. ".foo.bar.HelloRequest"). Used by the code generator to resolve field type_names.

Defined in:

proto/generator/naming.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(files : Array(Bootstrap::FileDescriptorProto)) #

[View source]

Instance Method Detail

def entries : Hash(String, Entry) #

[View source]
def resolve(fq_name : String) : Entry | Nil #

[View source]