Pbuf.Protoc.Context (pbuf v0.1.16)

Context holds information necessary for building types. The initial context contains file-wide information (the package name, enums). This file-wide context is used as the basis for message-specific contexts which include things which are only valid for that message (like enums defined within the message)

Link to this section Summary

Link to this section Types

Specs

t() :: %Pbuf.Protoc.Context{
  enums: %{optional(String.t()) => Pbuf.Protoc.Enumeration.t()},
  global: any(),
  maps: %{optional(String.t()) => {any(), any()}},
  namespace: String.t(),
  oneof_format: term(),
  oneofs: %{optional(non_neg_integer()) => Pbuf.Protoc.OneOf.t()},
  package: String.t(),
  version: 2 | 3
}

Link to this section Functions

Link to this function

fields(context, fields)

Specs

fields(t(), [any()]) :: t()
Link to this function

message(context, desc, global)

Link to this function

new(input, global)