MCPcopy
hub / github.com/web-infra-dev/garfish / mapVisit

Method mapVisit

packages/css-scope/src/cssStringify.ts:43–55  ·  view source on GitHub ↗
(nodes: Array<Node>, delim: string)

Source from the content-addressed store, hash-verified

41 }
42
43 mapVisit(nodes: Array<Node>, delim: string) {
44 let i = 0;
45 let buf = '';
46 const len = nodes.length;
47
48 for (; i < len; i++) {
49 buf += this.visit(nodes[i]);
50 if (delim && i < len - 1) {
51 buf += this.emit(delim);
52 }
53 }
54 return buf;
55 }
56
57 addScope(selectors: Array<string>) {
58 if (!this.id) return selectors;

Callers 10

stylesheetMethod · 0.95
mediaMethod · 0.95
documentMethod · 0.95
supportsMethod · 0.95
keyframesMethod · 0.95
keyframeMethod · 0.95
pageMethod · 0.95
hostMethod · 0.95
ruleMethod · 0.95
'font-face'Method · 0.95

Calls 2

visitMethod · 0.95
emitMethod · 0.95

Tested by

no test coverage detected