toTokens.js 311 B

12345678910
  1. "use strict";
  2. var convertTemplateType = require("./convertTemplateType");
  3. var toToken = require("./toToken");
  4. module.exports = function(tokens, tt, code) {
  5. return convertTemplateType(tokens, tt)
  6. .filter(t => t.type !== "CommentLine" && t.type !== "CommentBlock")
  7. .map(t => toToken(t, tt, code));
  8. };