@ -1518,7 +1518,8 @@ module Struct = struct
; supers : Name . t list (* * superclasses *)
; supers : Name . t list (* * superclasses *)
; methods : Procname . t list (* * methods defined *)
; methods : Procname . t list (* * methods defined *)
; exported_objc_methods : Procname . t list (* * methods in ObjC interface, subset of [methods] *)
; exported_objc_methods : Procname . t list (* * methods in ObjC interface, subset of [methods] *)
; annots : Annot . Item . t (* * annotations *) }
; annots : Annot . Item . t (* * annotations *)
; dummy : bool (* * dummy struct for class including static method *) }
type lookup = Name . t -> t option
type lookup = Name . t -> t option
@ -1554,21 +1555,22 @@ module Struct = struct
let internal_mk_struct ? default ? fields ? statics ? methods ? exported_objc_methods ? supers ? annots
let internal_mk_struct ? default ? fields ? statics ? methods ? exported_objc_methods ? supers ? annots
() =
? dummy () =
let default_ =
let default_ =
{ fields = []
{ fields = []
; statics = []
; statics = []
; methods = []
; methods = []
; exported_objc_methods = []
; exported_objc_methods = []
; supers = []
; supers = []
; annots = Annot . Item . empty }
; annots = Annot . Item . empty
; dummy = false }
in
in
let mk_struct_ ? ( default = default_ ) ? ( fields = default . fields ) ? ( statics = default . statics )
let mk_struct_ ? ( default = default_ ) ? ( fields = default . fields ) ? ( statics = default . statics )
? ( methods = default . methods ) ? ( exported_objc_methods = default . exported_objc_methods )
? ( methods = default . methods ) ? ( exported_objc_methods = default . exported_objc_methods )
? ( supers = default . supers ) ? ( annots = default . annots ) () =
? ( supers = default . supers ) ? ( annots = default . annots ) ? ( dummy = default . dummy ) () =
{ fields ; statics ; methods ; exported_objc_methods ; supers ; annots }
{ fields ; statics ; methods ; exported_objc_methods ; supers ; annots ; dummy }
in
in
mk_struct_ ? default ? fields ? statics ? methods ? exported_objc_methods ? supers ? annots ()
mk_struct_ ? default ? fields ? statics ? methods ? exported_objc_methods ? supers ? annots ? dummy ()
(* * the element typ of the final extensible array in the given typ, if any *)
(* * the element typ of the final extensible array in the given typ, if any *)
@ -1617,4 +1619,7 @@ module Struct = struct
None )
None )
| _ ->
| _ ->
None
None
let is_dummy { dummy } = dummy
end
end