src/convertTemplateType.js
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);
  }
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);
  }
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 ) ; }
create Template token
create Template token