MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / mapSelectors

Function mapSelectors

packages/core/css/css-tree-parser.ts:3–9  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

1import * as cssTree from 'css-tree';
2
3function mapSelectors(selector: string): string[] {
4 if (!selector) {
5 return [];
6 }
7
8 return selector.split(/\s*(?![^(]*\)),\s*/).map((s) => s.replace(/\u200C/g, ','));
9}
10
11function mapPosition(node, css) {
12 const res: any = {

Callers 1

transformAstFunction · 0.85

Calls 2

replaceMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected