Documentation ¶
Index ¶
- Constants
- func ParseOption(value string, t *Type) interface{}
- func ReadArrayEnd(l *lexer.L) lexer.StateFunc
- func ReadArrayStart(l *lexer.L) lexer.StateFunc
- func ReadColon(l *lexer.L) lexer.StateFunc
- func ReadIdentifier(l *lexer.L) lexer.StateFunc
- func ReadMessageEnd(l *lexer.L) lexer.StateFunc
- func ReadMessageStart(l *lexer.L) lexer.StateFunc
- func ReadValue(l *lexer.L) lexer.StateFunc
- func ReadValueEnd(l *lexer.L) lexer.StateFunc
- func TokenToString(token lexer.TokenType) string
- type Context
- type Element
- type ElementType
- type Enum
- func (e *Enum) GetElementType() ElementType
- func (e *Enum) Name() string
- func (e *Enum) Values() []*EnumValue
- func (n Enum) VisitComment(comment *parser.Comment)
- func (n Enum) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (e *Enum) VisitEnum(enum *parser.Enum) (next bool)
- func (e *Enum) VisitEnumField(field *parser.EnumField) (next bool)
- func (n Enum) VisitExtend(extend *parser.Extend) (next bool)
- func (n Enum) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (n Enum) VisitField(field *parser.Field) (next bool)
- func (n Enum) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Enum) VisitImport(i *parser.Import) (next bool)
- func (n Enum) VisitMapField(field *parser.MapField) (next bool)
- func (n Enum) VisitMessage(message *parser.Message) (next bool)
- func (n Enum) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Enum) VisitOneofField(field *parser.OneofField) (next bool)
- func (e *Enum) VisitOption(option *parser.Option) (next bool)
- func (n Enum) VisitPackage(p *parser.Package) (next bool)
- func (n Enum) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Enum) VisitReserved(reserved *parser.Reserved) (next bool)
- func (n Enum) VisitService(service *parser.Service) (next bool)
- func (n Enum) VisitSyntax(syntax *parser.Syntax) (next bool)
- type EnumValue
- type ExtensionType
- type Field
- func (f *Field) FieldNumber() string
- func (f *Field) GetElementType() ElementType
- func (f *Field) IsRepeated() bool
- func (f *Field) Name() string
- func (f *Field) Type() *Type
- func (n Field) VisitComment(comment *parser.Comment)
- func (n Field) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (n Field) VisitEnum(enum *parser.Enum) (next bool)
- func (n Field) VisitEnumField(field *parser.EnumField) (next bool)
- func (n Field) VisitExtend(extend *parser.Extend) (next bool)
- func (n Field) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (f *Field) VisitField(field *parser.Field) (next bool)
- func (n Field) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Field) VisitImport(i *parser.Import) (next bool)
- func (n Field) VisitMapField(field *parser.MapField) (next bool)
- func (n Field) VisitMessage(message *parser.Message) (next bool)
- func (n Field) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Field) VisitOneofField(field *parser.OneofField) (next bool)
- func (f *Field) VisitOption(option *parser.Option) (next bool)
- func (n Field) VisitPackage(p *parser.Package) (next bool)
- func (n Field) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Field) VisitReserved(reserved *parser.Reserved) (next bool)
- func (n Field) VisitService(service *parser.Service) (next bool)
- func (n Field) VisitSyntax(syntax *parser.Syntax) (next bool)
- type Message
- func (m *Message) Enum(name string) *Enum
- func (m *Message) Enums() []*Enum
- func (m *Message) Field(name string) *Field
- func (m *Message) Fields() []*Field
- func (m *Message) GetElementType() ElementType
- func (m *Message) IsOneOf() bool
- func (m *Message) Message(name string) *Message
- func (m *Message) Messages() []*Message
- func (m *Message) Name() string
- func (m *Message) Type() *Type
- func (n Message) VisitComment(comment *parser.Comment)
- func (n Message) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (m *Message) VisitEnum(enum *parser.Enum) (next bool)
- func (n Message) VisitEnumField(field *parser.EnumField) (next bool)
- func (n Message) VisitExtend(extend *parser.Extend) (next bool)
- func (n Message) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (m *Message) VisitField(field *parser.Field) (next bool)
- func (n Message) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Message) VisitImport(i *parser.Import) (next bool)
- func (n Message) VisitMapField(field *parser.MapField) (next bool)
- func (m *Message) VisitMessage(message *parser.Message) (next bool)
- func (m *Message) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Message) VisitOneofField(field *parser.OneofField) (next bool)
- func (m *Message) VisitOption(option *parser.Option) (next bool)
- func (n Message) VisitPackage(p *parser.Package) (next bool)
- func (n Message) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Message) VisitReserved(reserved *parser.Reserved) (next bool)
- func (n Message) VisitService(service *parser.Service) (next bool)
- func (n Message) VisitSyntax(syntax *parser.Syntax) (next bool)
- type OneOf
- type Option
- func (n Option) VisitComment(comment *parser.Comment)
- func (n Option) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (n Option) VisitEnum(enum *parser.Enum) (next bool)
- func (n Option) VisitEnumField(field *parser.EnumField) (next bool)
- func (n Option) VisitExtend(extend *parser.Extend) (next bool)
- func (n Option) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (n Option) VisitField(field *parser.Field) (next bool)
- func (n Option) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Option) VisitImport(i *parser.Import) (next bool)
- func (n Option) VisitMapField(field *parser.MapField) (next bool)
- func (n Option) VisitMessage(message *parser.Message) (next bool)
- func (n Option) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Option) VisitOneofField(field *parser.OneofField) (next bool)
- func (n Option) VisitOption(option *parser.Option) (next bool)
- func (n Option) VisitPackage(p *parser.Package) (next bool)
- func (n Option) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Option) VisitReserved(reserved *parser.Reserved) (next bool)
- func (n Option) VisitService(service *parser.Service) (next bool)
- func (n Option) VisitSyntax(syntax *parser.Syntax) (next bool)
- type Options
- func (o *Options) AddOption(name string, value string)
- func (o *Options) Get(name string) interface{}
- func (o *Options) Has(name string) bool
- func (n Options) VisitComment(comment *parser.Comment)
- func (n Options) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (n Options) VisitEnum(enum *parser.Enum) (next bool)
- func (n Options) VisitEnumField(field *parser.EnumField) (next bool)
- func (n Options) VisitExtend(extend *parser.Extend) (next bool)
- func (n Options) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (n Options) VisitField(field *parser.Field) (next bool)
- func (n Options) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Options) VisitImport(i *parser.Import) (next bool)
- func (n Options) VisitMapField(field *parser.MapField) (next bool)
- func (n Options) VisitMessage(message *parser.Message) (next bool)
- func (n Options) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Options) VisitOneofField(field *parser.OneofField) (next bool)
- func (o *Options) VisitOption(option *parser.Option) (next bool)
- func (n Options) VisitPackage(p *parser.Package) (next bool)
- func (n Options) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Options) VisitReserved(reserved *parser.Reserved) (next bool)
- func (n Options) VisitService(service *parser.Service) (next bool)
- func (n Options) VisitSyntax(syntax *parser.Syntax) (next bool)
- type Package
- func (p *Package) Enum(name string) *Enum
- func (p *Package) Enums() []*Enum
- func (p *Package) Extension(extType ExtensionType, pkgName string) []*Message
- func (p *Package) Extensions() map[ExtensionType]map[string][]*Message
- func (p *Package) GetElementType() ElementType
- func (p *Package) Message(name string) *Message
- func (p *Package) Messages() []*Message
- func (p *Package) Name() string
- func (p *Package) Service(s string) *Service
- func (p *Package) Services() []*Service
- func (n Package) VisitComment(comment *parser.Comment)
- func (n Package) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (p *Package) VisitEnum(enum *parser.Enum) (next bool)
- func (n Package) VisitEnumField(field *parser.EnumField) (next bool)
- func (p *Package) VisitExtend(extend *parser.Extend) (next bool)
- func (n Package) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (n Package) VisitField(field *parser.Field) (next bool)
- func (n Package) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Package) VisitImport(i *parser.Import) (next bool)
- func (n Package) VisitMapField(field *parser.MapField) (next bool)
- func (p *Package) VisitMessage(message *parser.Message) (next bool)
- func (n Package) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Package) VisitOneofField(field *parser.OneofField) (next bool)
- func (p *Package) VisitOption(option *parser.Option) (next bool)
- func (n Package) VisitPackage(p *parser.Package) (next bool)
- func (n Package) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Package) VisitReserved(reserved *parser.Reserved) (next bool)
- func (p *Package) VisitService(service *parser.Service) (next bool)
- func (n Package) VisitSyntax(syntax *parser.Syntax) (next bool)
- type Parser
- type RPC
- func (r *RPC) GetElementType() ElementType
- func (r *RPC) Name() string
- func (n RPC) VisitComment(comment *parser.Comment)
- func (n RPC) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (n RPC) VisitEnum(enum *parser.Enum) (next bool)
- func (n RPC) VisitEnumField(field *parser.EnumField) (next bool)
- func (n RPC) VisitExtend(extend *parser.Extend) (next bool)
- func (n RPC) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (n RPC) VisitField(field *parser.Field) (next bool)
- func (n RPC) VisitGroupField(field *parser.GroupField) (next bool)
- func (n RPC) VisitImport(i *parser.Import) (next bool)
- func (n RPC) VisitMapField(field *parser.MapField) (next bool)
- func (n RPC) VisitMessage(message *parser.Message) (next bool)
- func (n RPC) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n RPC) VisitOneofField(field *parser.OneofField) (next bool)
- func (r *RPC) VisitOption(option *parser.Option) (next bool)
- func (n RPC) VisitPackage(p *parser.Package) (next bool)
- func (r *RPC) VisitRPC(rpc *parser.RPC) (next bool)
- func (n RPC) VisitReserved(reserved *parser.Reserved) (next bool)
- func (n RPC) VisitService(service *parser.Service) (next bool)
- func (n RPC) VisitSyntax(syntax *parser.Syntax) (next bool)
- type Service
- func (s *Service) GetElementType() ElementType
- func (s *Service) Name() string
- func (s *Service) RPC(name string) *RPC
- func (s *Service) RPCs() []*RPC
- func (n Service) VisitComment(comment *parser.Comment)
- func (n Service) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
- func (n Service) VisitEnum(enum *parser.Enum) (next bool)
- func (n Service) VisitEnumField(field *parser.EnumField) (next bool)
- func (n Service) VisitExtend(extend *parser.Extend) (next bool)
- func (n Service) VisitExtensions(extensions *parser.Extensions) (next bool)
- func (n Service) VisitField(field *parser.Field) (next bool)
- func (n Service) VisitGroupField(field *parser.GroupField) (next bool)
- func (n Service) VisitImport(i *parser.Import) (next bool)
- func (n Service) VisitMapField(field *parser.MapField) (next bool)
- func (n Service) VisitMessage(message *parser.Message) (next bool)
- func (n Service) VisitOneof(oneof *parser.Oneof) (next bool)
- func (n Service) VisitOneofField(field *parser.OneofField) (next bool)
- func (s *Service) VisitOption(option *parser.Option) (next bool)
- func (n Service) VisitPackage(p *parser.Package) (next bool)
- func (s *Service) VisitRPC(rpc *parser.RPC) (next bool)
- func (n Service) VisitReserved(reserved *parser.Reserved) (next bool)
- func (s *Service) VisitService(service *parser.Service) (next bool)
- func (n Service) VisitSyntax(syntax *parser.Syntax) (next bool)
- type Type
- type TypeDictionary
Constants ¶
View Source
const ( CurlyLeftBracket lexer.TokenType = iota // { CurlyRightBracket // } SquareLeftBracket // [ SquareRightBracket // ] SemiColon // ; Colon // : Ident StringValue Value )
Variables ¶
This section is empty.
Functions ¶
func ParseOption ¶
func ReadArrayEnd ¶
func ReadArrayEnd(l *lexer.L) lexer.StateFunc
func ReadArrayStart ¶
func ReadArrayStart(l *lexer.L) lexer.StateFunc
func ReadIdentifier ¶
func ReadIdentifier(l *lexer.L) lexer.StateFunc
func ReadMessageEnd ¶
func ReadMessageEnd(l *lexer.L) lexer.StateFunc
func ReadMessageStart ¶
func ReadMessageStart(l *lexer.L) lexer.StateFunc
func ReadValueEnd ¶
func ReadValueEnd(l *lexer.L) lexer.StateFunc
func TokenToString ¶
func TokenToString(token lexer.TokenType) string
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context captures the global parsing state of the files
func NewContext ¶
func NewContext() *Context
func (*Context) AcceptProtoFile ¶
func (*Context) GlobalScope ¶
type Element ¶
type Element interface { Name() string GetElementType() ElementType }
type ElementType ¶
type ElementType int
const ( UnknownElementType ElementType = iota PackageElementType EnumElementType MessageElementType FieldElementType ServiceElementType RPCElementType )
type Enum ¶
type Enum struct { *Options // contains filtered or unexported fields }
func NewEnum ¶
func NewEnum(types *TypeDictionary) *Enum
func (*Enum) GetElementType ¶
func (e *Enum) GetElementType() ElementType
func (Enum) VisitComment ¶
func (Enum) VisitEmptyStatement ¶
func (n Enum) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Enum) VisitExtend ¶
func (Enum) VisitExtensions ¶
func (n Enum) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Enum) VisitField ¶
func (Enum) VisitGroupField ¶
func (n Enum) VisitGroupField(field *parser.GroupField) (next bool)
func (Enum) VisitImport ¶
func (Enum) VisitMapField ¶
func (Enum) VisitMessage ¶
func (Enum) VisitOneof ¶
func (Enum) VisitOneofField ¶
func (n Enum) VisitOneofField(field *parser.OneofField) (next bool)
func (Enum) VisitPackage ¶
func (Enum) VisitReserved ¶
func (Enum) VisitService ¶
func (Enum) VisitSyntax ¶
type EnumValue ¶
type EnumValue struct {
// contains filtered or unexported fields
}
func (*EnumValue) Identifier ¶
type ExtensionType ¶
type ExtensionType int
const ( UnknownExtension ExtensionType = iota FileExtension MessageExtension FieldExtension OneOfExtension EnumExtension EnumValueExtension ServiceExtension MethodExtension )
type Field ¶
type Field struct { *Options // contains filtered or unexported fields }
func NewField ¶
func NewField(types *TypeDictionary) *Field
func (*Field) FieldNumber ¶
func (*Field) GetElementType ¶
func (f *Field) GetElementType() ElementType
func (*Field) IsRepeated ¶
func (Field) VisitComment ¶
func (Field) VisitEmptyStatement ¶
func (n Field) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Field) VisitEnumField ¶
func (Field) VisitExtend ¶
func (Field) VisitExtensions ¶
func (n Field) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Field) VisitGroupField ¶
func (n Field) VisitGroupField(field *parser.GroupField) (next bool)
func (Field) VisitImport ¶
func (Field) VisitMapField ¶
func (Field) VisitMessage ¶
func (Field) VisitOneof ¶
func (Field) VisitOneofField ¶
func (n Field) VisitOneofField(field *parser.OneofField) (next bool)
func (Field) VisitPackage ¶
func (Field) VisitReserved ¶
func (Field) VisitService ¶
func (Field) VisitSyntax ¶
type Message ¶
type Message struct { *Options // contains filtered or unexported fields }
func NewMessage ¶
func NewMessage(types *TypeDictionary) *Message
func (*Message) GetElementType ¶
func (m *Message) GetElementType() ElementType
func (Message) VisitComment ¶
func (Message) VisitEmptyStatement ¶
func (n Message) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Message) VisitEnumField ¶
func (Message) VisitExtend ¶
func (Message) VisitExtensions ¶
func (n Message) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Message) VisitGroupField ¶
func (n Message) VisitGroupField(field *parser.GroupField) (next bool)
func (Message) VisitImport ¶
func (Message) VisitMapField ¶
func (Message) VisitOneofField ¶
func (n Message) VisitOneofField(field *parser.OneofField) (next bool)
func (Message) VisitPackage ¶
func (Message) VisitReserved ¶
func (Message) VisitService ¶
func (Message) VisitSyntax ¶
type Option ¶
type Option struct { OptionName string OptionValue string // contains filtered or unexported fields }
func (Option) VisitComment ¶
func (Option) VisitEmptyStatement ¶
func (n Option) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Option) VisitEnumField ¶
func (Option) VisitExtend ¶
func (Option) VisitExtensions ¶
func (n Option) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Option) VisitField ¶
func (Option) VisitGroupField ¶
func (n Option) VisitGroupField(field *parser.GroupField) (next bool)
func (Option) VisitImport ¶
func (Option) VisitMapField ¶
func (Option) VisitMessage ¶
func (Option) VisitOneof ¶
func (Option) VisitOneofField ¶
func (n Option) VisitOneofField(field *parser.OneofField) (next bool)
func (Option) VisitOption ¶
func (Option) VisitPackage ¶
func (Option) VisitReserved ¶
func (Option) VisitService ¶
func (Option) VisitSyntax ¶
type Options ¶
type Options struct { Options []*Option // contains filtered or unexported fields }
func NewOptions ¶
func NewOptions(parent Element, types *TypeDictionary) *Options
func (Options) VisitComment ¶
func (Options) VisitEmptyStatement ¶
func (n Options) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Options) VisitEnumField ¶
func (Options) VisitExtend ¶
func (Options) VisitExtensions ¶
func (n Options) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Options) VisitField ¶
func (Options) VisitGroupField ¶
func (n Options) VisitGroupField(field *parser.GroupField) (next bool)
func (Options) VisitImport ¶
func (Options) VisitMapField ¶
func (Options) VisitMessage ¶
func (Options) VisitOneof ¶
func (Options) VisitOneofField ¶
func (n Options) VisitOneofField(field *parser.OneofField) (next bool)
func (Options) VisitPackage ¶
func (Options) VisitReserved ¶
func (Options) VisitService ¶
func (Options) VisitSyntax ¶
type Package ¶
type Package struct { *Options // contains filtered or unexported fields }
func NewPackage ¶
func NewPackage(name string, types *TypeDictionary) *Package
func (*Package) Extension ¶
func (p *Package) Extension(extType ExtensionType, pkgName string) []*Message
func (*Package) Extensions ¶
func (p *Package) Extensions() map[ExtensionType]map[string][]*Message
func (*Package) GetElementType ¶
func (p *Package) GetElementType() ElementType
func (Package) VisitComment ¶
func (Package) VisitEmptyStatement ¶
func (n Package) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Package) VisitEnumField ¶
func (Package) VisitExtensions ¶
func (n Package) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Package) VisitField ¶
func (Package) VisitGroupField ¶
func (n Package) VisitGroupField(field *parser.GroupField) (next bool)
func (Package) VisitImport ¶
func (Package) VisitMapField ¶
func (Package) VisitOneof ¶
func (Package) VisitOneofField ¶
func (n Package) VisitOneofField(field *parser.OneofField) (next bool)
func (Package) VisitPackage ¶
func (Package) VisitReserved ¶
func (Package) VisitSyntax ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) GetContext ¶
type RPC ¶
type RPC struct { *Options RPCName string RequestMessageType *Type ResponseMessageType *Type RequestMessageStreaming bool ResponseMessageStreaming bool // contains filtered or unexported fields }
func NewRPC ¶
func NewRPC(types *TypeDictionary) *RPC
func (*RPC) GetElementType ¶
func (r *RPC) GetElementType() ElementType
func (RPC) VisitComment ¶
func (RPC) VisitEmptyStatement ¶
func (n RPC) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (RPC) VisitEnumField ¶
func (RPC) VisitExtend ¶
func (RPC) VisitExtensions ¶
func (n RPC) VisitExtensions(extensions *parser.Extensions) (next bool)
func (RPC) VisitField ¶
func (RPC) VisitGroupField ¶
func (n RPC) VisitGroupField(field *parser.GroupField) (next bool)
func (RPC) VisitImport ¶
func (RPC) VisitMapField ¶
func (RPC) VisitMessage ¶
func (RPC) VisitOneof ¶
func (RPC) VisitOneofField ¶
func (n RPC) VisitOneofField(field *parser.OneofField) (next bool)
func (RPC) VisitPackage ¶
func (RPC) VisitReserved ¶
func (RPC) VisitService ¶
func (RPC) VisitSyntax ¶
type Service ¶
type Service struct { *Options // contains filtered or unexported fields }
func NewService ¶
func NewService(types *TypeDictionary) *Service
func (*Service) GetElementType ¶
func (s *Service) GetElementType() ElementType
func (Service) VisitComment ¶
func (Service) VisitEmptyStatement ¶
func (n Service) VisitEmptyStatement(statement *parser.EmptyStatement) (next bool)
func (Service) VisitEnumField ¶
func (Service) VisitExtend ¶
func (Service) VisitExtensions ¶
func (n Service) VisitExtensions(extensions *parser.Extensions) (next bool)
func (Service) VisitField ¶
func (Service) VisitGroupField ¶
func (n Service) VisitGroupField(field *parser.GroupField) (next bool)
func (Service) VisitImport ¶
func (Service) VisitMapField ¶
func (Service) VisitMessage ¶
func (Service) VisitOneof ¶
func (Service) VisitOneofField ¶
func (n Service) VisitOneofField(field *parser.OneofField) (next bool)
func (Service) VisitPackage ¶
func (Service) VisitReserved ¶
func (Service) VisitSyntax ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func (*Type) GetFullyQualifiedName ¶
func (*Type) GetMessage ¶
func (*Type) GetNativeType ¶
type TypeDictionary ¶
type TypeDictionary struct {
// contains filtered or unexported fields
}
func NewTypeDictionary ¶
func NewTypeDictionary() *TypeDictionary
func (*TypeDictionary) RegisterEnum ¶
func (d *TypeDictionary) RegisterEnum(enum *Enum)
func (*TypeDictionary) RegisterExtension ¶
func (d *TypeDictionary) RegisterExtension(extends string, msg *Message)
func (*TypeDictionary) RegisterMessage ¶
func (d *TypeDictionary) RegisterMessage(m *Message) *Type
Click to show internal directories.
Click to hide internal directories.