MCPcopy Create free account
hub / github.com/andreypopp/react-css-components / findComponentNames

Function findComponentNames

src/index.js:104–113  ·  view source on GitHub ↗
(node: CSSNode)

Source from the content-addressed store, hash-verified

102}
103
104function findComponentNames(node: CSSNode): Array<string> {
105 let componentNames = [];
106 let selector = parseSelector(node.selector);
107 selector.eachTag(selector => {
108 if (COMPONENT_RE.exec(selector.value)) {
109 componentNames.push(selector.value);
110 }
111 });
112 return componentNames;
113}
114
115function findVariants(node: CSSNode): Array<VariantSpec> {
116 let variantNames = [];

Callers 2

localizeComponentRuleFunction · 0.85
renderToJSFunction · 0.85

Calls 1

parseSelectorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…