code: function replaceWithTemplateType(start, end) {
      var templateToken = {
        type: "Template",
        value: createTemplateValue(start, end),
        start: tokens[start].start,
        end: tokens[end].end,
        loc: {
          start: tokens[start].loc.start,
          end: tokens[end].loc.end
        }
      };
  
      // put new token in place of old tokens
      tokens.splice(start, end - start + 1, templateToken);
    }
docs: create Template token