Sha256: 47f2ece52cb4c6b5db6f793a903e96e33cc089c4efe65c5300b1eac6c1e7ccd8

Contents?: true

Size: 879 Bytes

Versions: 29

Compression:

Stored size: 879 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TaggedTemplateExpression = TaggedTemplateExpression;
exports.TemplateElement = TemplateElement;
exports.TemplateLiteral = TemplateLiteral;
function TaggedTemplateExpression(node) {
  this.print(node.tag, node);
  this.print(node.typeParameters, node);
  this.print(node.quasi, node);
}
function TemplateElement() {
  throw new Error("TemplateElement printing is handled in TemplateLiteral");
}
function TemplateLiteral(node) {
  const quasis = node.quasis;
  let partRaw = "`";
  for (let i = 0; i < quasis.length; i++) {
    partRaw += quasis[i].value.raw;
    if (i + 1 < quasis.length) {
      this.token(partRaw + "${", true);
      this.print(node.expressions[i], node);
      partRaw = "}";
    }
  }
  this.token(partRaw + "`", true);
}

//# sourceMappingURL=template-literals.js.map

Version data entries

29 entries across 13 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.51 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.51 node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.51 node_modules/@babel/helper-simple-access/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.51 node_modules/@babel/helper-module-imports/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-module-imports/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.50 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-simple-access/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-module-imports/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-simple-access/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.49 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.48 node_modules/@babel/helper-simple-access/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.48 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.48 node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.48 node_modules/@babel/helper-module-imports/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js
immosquare-cleaner-0.1.48 node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/traverse/node_modules/@babel/generator/lib/generators/template-literals.js