Няма описание

createSourceFile.js 289B

123456789101112
  1. module.exports = (createSourceFile) => (
  2. fileName,
  3. text,
  4. languageVersion,
  5. setParentNodes
  6. ) => {
  7. text = text.replace(/\/\*;;([\s\S]+?)\*\//gm, '$1');
  8. text = text.replace(/\/\*;(.+?)\*\//gm, ':$1');
  9. return createSourceFile(fileName, text, languageVersion, setParentNodes);
  10. };