MCPcopy Index your code
hub / github.com/css/csso / buildList

Function buildList

lib/usage.js:21–41  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

19}
20
21function buildList(data) {
22 if (!data) {
23 return null;
24 }
25
26 const tags = buildMap(data.tags, true);
27 const ids = buildMap(data.ids);
28 const classes = buildMap(data.classes);
29
30 if (tags === null &&
31 ids === null &&
32 classes === null) {
33 return null;
34 }
35
36 return {
37 tags,
38 ids,
39 classes
40 };
41}
42
43export function buildIndex(data) {
44 let scopes = false;

Callers 1

buildIndexFunction · 0.85

Calls 1

buildMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…