package ocaml-protoc
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Protobuf compiler for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
2.4.0.tar.gz
md5=8a294e86c6202b8ec8016e71d19264cb
sha512=67020bef50b59c6590c1b25d85a75d6e19d6cd37d42b87c94aef798bff51a45f38fe7024b4c67d71c22c13d3f2776bec83acd77794a518f1c4a7eddfc30b6d0b
doc/ocaml-protoc.compiler-lib/Ocaml_protoc_compiler_lib/Pb_typing_type_tree/index.html
Module Ocaml_protoc_compiler_lib.Pb_typing_type_treeSource
Protobuf typed tree.
The typetree type is parametrized to allow for 2 phase compilation.
Source
type ('a, 'b) field = {field_parsed : 'b Pt.field;field_type : 'a Pb_field_type.t;field_default : Pb_option.constant option;field_options : Pb_option.set;
}Field definition.
'ais forunresolvedorresolved'bis forfield_labelto account for both normal and one of fields.
Source
type 'a map_field = {map_name : string;map_number : int;map_key_type : Pb_field_type.map_key_type;map_value_type : 'a Pb_field_type.t;map_options : Pb_option.set;
}Map definition
Oneof definition
Type scope
The scope of a type (message or enum) is defined by the package (defined in the top of the proto file as well as the messages above it since a message definition can be nested
Source
type 'a message_body_content = | Message_field of 'a message_field| Message_oneof_field of 'a oneof| Message_map_field of 'a map_field
item for the message body
Source
and 'a message = {extensions : Pt.extension_range list;message_options : Pb_option.set;message_name : string;message_body : 'a message_body_content list;
}Source
type 'a proto_type = {scope : type_scope;id : int;file_name : string;file_options : Pb_option.set;spec : 'a proto_type_spec;
} sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>