Module Nullsafe__ThirdPartyMethod
A helper module responsible for representing nullability information for a single 3rd party method, as well with functionality to read this information from the 3rd party nullability repository.
type t={class_name : fully_qualified_type;method_name : method_name;ret_nullability : type_nullability;params : (fully_qualified_type * type_nullability) list;}and fully_qualified_type= stringand method_name=|Constructor|Method of stringand type_nullability=|Nullable|Nonnull
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_fully_qualified_type : fully_qualified_type -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_method_name : method_name -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_type_nullability : type_nullability -> Ppx_sexp_conv_lib.Sexp.tval t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> tval fully_qualified_type_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> fully_qualified_typeval method_name_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> method_nameval type_nullability_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> type_nullabilityval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_fully_qualified_type : fully_qualified_type -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_method_name : method_name -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_type_nullability : type_nullability -> Ppx_sexp_conv_lib.Sexp.tval t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> tval fully_qualified_type_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> fully_qualified_typeval method_name_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> method_nameval type_nullability_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> type_nullabilityval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_fully_qualified_type : fully_qualified_type -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_method_name : method_name -> Ppx_sexp_conv_lib.Sexp.tval sexp_of_type_nullability : type_nullability -> Ppx_sexp_conv_lib.Sexp.tval t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> tval fully_qualified_type_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> fully_qualified_typeval method_name_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> method_nameval type_nullability_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> type_nullability
val string_of_parsing_error : parsing_error -> stringval parse : string -> (t, parsing_error) IStdlib.IStd.resultGiven a string representing nullability information for a given third-party method, return the method signature and nullability of its params and return values. The string should come from a repository storing 3rd party annotations. E.g.
"package.name.Class$NestedClass#foo(package.name.SomeClass, @Nullable package.name.OtherClass) @Nullable"