MCPcopy
hub / github.com/css/csso / createDeclarationIndexer

Function createDeclarationIndexer

lib/restructure/prepare/createDeclarationIndexer.js:19–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17};
18
19export default function createDeclarationIndexer() {
20 const ids = new Index();
21
22 return function markDeclaration(node) {
23 const id = generate(node);
24
25 node.id = ids.resolve(id);
26 node.length = id.length;
27 node.fingerprint = null;
28
29 return node;
30 };
31};

Callers 1

prepareFunction · 0.85

Calls 2

resolveMethod · 0.95
generateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…