package ocaml-protoc
Module Ocaml_protoc_compiler_lib.Pb_codegen_formattingSource
Formatting utilities for code generation
types
A scope is a formatting container which can contains line of text as well as other nested scopes
In other word a scope define an indentation section.
Creation
sub_scope scope f adds a sub scope and apply f to it.
Printing
print scope returns the formatted scops with a 2 character indentation for each scope.
Write to output