Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
selectors.walkTags((tag) => {
if(!values[tag.value]) {
return;
}
tag.replaceWith(selector.tag(values[tag.value]));
})
);
function hostPlaceholder() {
return selectorParser.tag({ value: HOST_SELECTOR_PLACEHOLDER });
}
selectors.each(selector => {
const firstNode = selector.nodes[0];
if (
context === 'atom-text-editor' &&
firstNode.type === 'pseudo' &&
firstNode.value === ':host'
) {
const atomTextEditorElementNode = selectorParser.tag({
value: 'atom-text-editor'
});
firstNode.replaceWith(atomTextEditorElementNode);
}
let previousNodeIsAtomTextEditor = false;
let targetsAtomTextEditorShadow = context === 'atom-text-editor';
let previousNode;
selector.each(node => {
if (targetsAtomTextEditorShadow && node.type === 'class') {
if (DEPRECATED_SYNTAX_SELECTORS.has(node.value)) {
node.value = `syntax--${node.value}`;
}
} else {
if (
previousNodeIsAtomTextEditor &&