Matchers.RewriterSourceval substitute_fresh :
?metasyntax:Metasyntax.t ->
?fresh:(unit -> string) ->
string ->
stringif fresh is set, then substitute the pattern :id() starting at 1, and incrementing subsequent IDs. If fresh is unset, then by default substitute the pattern :id() starting at 1, and increment for each occurence of :id(), left to right.
val substitute :
?metasyntax:Metasyntax.t ->
?external_handler:External.t ->
?fresh:(unit -> string) ->
?filepath:string ->
string ->
Match.Environment.t ->
stringsubstitute returns the result of substituting env in template
val all :
?source:string ->
?metasyntax:Matchers__.Types.Metasyntax.t ->
?external_handler:External.t ->
?fresh:(unit -> string) ->
?filepath:string ->
rewrite_template:string ->
Match.t list ->
Replacement.result optionif source is given, substitute in-place. If not, emit result separated by newlines