package ocaml-protoc-plugin
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
Install
Dune Dependency
Authors
Maintainers
Sources
2.0.0.tar.gz
md5=64da59cf162da71c16aada2280a41679
sha512=20366714e30ff418b43034351c2560c72a7c99927959d412be7c579378af7f7b09f20c93ad07c816d23c86ebf53d5b56b3481cf38f13b6f0e1c5df5134aaf725
doc/src/ocaml-protoc-plugin.google_types/source_context.ml.html
Source file source_context.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
(************************************************) (* AUTOGENERATED FILE - DO NOT EDIT! *) (************************************************) (* Generated by: ocaml-protoc-plugin *) (* https://github.com/issuu/ocaml-protoc-plugin *) (************************************************) (* Source: google/protobuf/source_context.proto Syntax: proto3 Parameters: annot='' debug=false opens=[] int64_as_int=true int32_as_int=true fixed_as_int=false singleton_record=false *) module Google = struct module Protobuf = struct module rec SourceContext : sig val name': unit -> string type t = string val to_proto: t -> Ocaml_protoc_plugin.Writer.t val from_proto: Ocaml_protoc_plugin.Reader.t -> t Ocaml_protoc_plugin.Result.t end = struct let name' () = "Source_context.google.protobuf.SourceContext" type t = string let to_proto = let apply = fun ~f a -> f a in let spec = Ocaml_protoc_plugin.Serialize.C.( basic (1, string, proto3) ^:: nil ) in let serialize = Ocaml_protoc_plugin.Serialize.serialize (spec) in fun t -> apply ~f:(serialize ()) t let from_proto = let constructor = fun a -> a in let spec = Ocaml_protoc_plugin.Deserialize.C.( basic (1, string, proto3) ^:: nil ) in let deserialize = Ocaml_protoc_plugin.Deserialize.deserialize (spec) constructor in fun writer -> deserialize writer end end end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>