Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite name resolution to handle cases there field names were identical to embedded message names. Improve name resolution algorithm aswell as type db construction.
- Loading branch information
1 parent
749b961
commit d33635c
Showing
18 changed files
with
929 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
type comment = string option | ||
type comments = { | ||
leading : comment; | ||
trailing : comment; | ||
detatched : string list; | ||
} | ||
|
||
type t | ||
val init: Spec.Descriptor.Google.Protobuf.FileDescriptorProto.t -> t | ||
val get_message_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_field_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_enum_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_enum_value_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_oneof_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_service_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_method_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_extension_comments : proto_path:string -> ?name:string -> t -> string list | ||
val get_file_comments : t -> string list (* Would it have any???? *) | ||
val get_option_comments : proto_path:string -> ?name:string -> t -> string list |
Oops, something went wrong.