mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
33
react-app/node_modules/babel-generator/lib/generators/template-literals.js
generated
vendored
Normal file
33
react-app/node_modules/babel-generator/lib/generators/template-literals.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.TaggedTemplateExpression = TaggedTemplateExpression;
|
||||
exports.TemplateElement = TemplateElement;
|
||||
exports.TemplateLiteral = TemplateLiteral;
|
||||
|
||||
function TaggedTemplateExpression(node) {
|
||||
this.print(node.tag, node);
|
||||
this.print(node.quasi, node);
|
||||
}
|
||||
|
||||
function TemplateElement(node) {
|
||||
this._push(node.value.raw);
|
||||
}
|
||||
|
||||
function TemplateLiteral(node) {
|
||||
this.push("`");
|
||||
|
||||
var quasis = node.quasis;
|
||||
|
||||
for (var i = 0; i < quasis.length; i++) {
|
||||
this.print(quasis[i], node);
|
||||
|
||||
if (i + 1 < quasis.length) {
|
||||
this._push("${ ");
|
||||
this.print(node.expressions[i], node);
|
||||
this.push(" }");
|
||||
}
|
||||
}
|
||||
|
||||
this._push("`");
|
||||
}
|
Reference in New Issue
Block a user