package melange
Module Flow_ast.Function
Source
type ('M, 'T) t = {id : ('M, 'T) Identifier.t option;params : ('M, 'T) Params.t;body : ('M, 'T) body;async : bool;generator : bool;effect_ : effect_;predicate : ('M, 'T) Type.Predicate.t option;return : ('M, 'T) ReturnAnnot.t;tparams : ('M, 'T) Type.TypeParams.t option;comments : ('M, unit) Syntax.t option;sig_loc : 'M;
}Source
and ('M, 'T) body = | BodyBlock of 'M * ('M, 'T) Statement.Block.t| BodyExpression of ('M, 'T) Expression.t
Source
val pp :
(Format.formatter -> 'M -> unit) ->
(Format.formatter -> 'T -> unit) ->
Format.formatter ->
('M, 'T) t ->
unitSource
val show :
(Format.formatter -> 'M -> unit) ->
(Format.formatter -> 'T -> unit) ->
('M, 'T) t ->
stringSource
val pp_body :
(Format.formatter -> 'M -> unit) ->
(Format.formatter -> 'T -> unit) ->
Format.formatter ->
('M, 'T) body ->
unitSource
val show_body :
(Format.formatter -> 'M -> unit) ->
(Format.formatter -> 'T -> unit) ->
('M, 'T) body ->
string