Rewriter.Rewrite_templateSourceif sequential is true, then substitute the pattern :id() starting at 1, and incrementing subsequent IDs. if sequential is false, then substitute the pattern :id() with a fresh hex string based on the last 48-bit part of a UUID v3 identifier
substitute returns the result and variables substituted for
val get_offsets_after_substitution :
(string * int) list ->
Match.Environment.t ->
(string * int) list