MCPcopy
hub / github.com/prettier/prettier / walk

Method walk

src/language-html/parse/ast.js:81–91  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

79 }
80
81 walk(fn) {
82 for (const NODES_KEY in NODES_KEYS) {
83 const nodes = this[NODES_KEY];
84 if (nodes) {
85 for (let i = 0; i < nodes.length; i++) {
86 nodes[i].walk(fn);
87 }
88 }
89 }
90 fn(this);
91 }
92
93 createChild(nodeOrProperties) {
94 const node =

Callers 11

postprocessFunction · 0.95
removeIgnorableFirstLfFunction · 0.80
mergeNodeIntoTextFunction · 0.80
extractInterpolationFunction · 0.80
extractWhitespacesFunction · 0.80
addIsSelfClosingFunction · 0.80
addCssDisplayFunction · 0.80
addIsSpaceSensitiveFunction · 0.80

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected