text: 
  
  const Fn = require('@definejs/fn');
  const Lines = require('@definejs/lines');
  
  function getId(item) {
      let code = `
          var module = {};
  
          module.require = function(id) {
              return id;
          };
  
          let id = ${item};
          return id;
      `;
  
      let id = Fn.exec(code);
  
      return id;
  }
  
  module.exports = {
  
      parse(content) {
          let regexp = /\s+module.require\s*\(\s*["']\S+["']\)?/g;
          let list = content.match(regexp);
          if (!list) {
              return [];
  
          }
          let lines = Lines.split(content);
  
  
          let startNo = 0;    //下次搜索的起始行号
  
          list = list.map((item, index) => {
              let no = Lines.getIndex(lines, item, startNo);  //行号。
              let line = lines[no];                           //整一行的 html。
  
              startNo = no + 1;
  
              let id = getId(item);
  
              return {
                  'id': id,
                  'no': no,
                  'match': item,
                  'line': line,
              };
            
  
          });
  
          return list;
      },
  
  };