mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
I ran the following script to update @babel/traverse from 7.15.4 to 7.23.2 packages to address the security issue tracked in crbug.com/1493744: `npm run install-deps audit fix --audit-level=critical` Bug: 1493744 Change-Id: Ie3fa0dc0527b6fa9e4b7906ee2034b95900c6033 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4953413 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Vidal Diazleal <vidorteg@microsoft.com> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
31 lines
913 B
JavaScript
31 lines
913 B
JavaScript
"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(node, parent) {
|
|
const isFirst = parent.quasis[0] === node;
|
|
const isLast = parent.quasis[parent.quasis.length - 1] === node;
|
|
const value = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${");
|
|
this.token(value, true);
|
|
}
|
|
function TemplateLiteral(node) {
|
|
const quasis = node.quasis;
|
|
for (let i = 0; i < quasis.length; i++) {
|
|
this.print(quasis[i], node);
|
|
if (i + 1 < quasis.length) {
|
|
this.print(node.expressions[i], node);
|
|
}
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=template-literals.js.map
|