MCPcopy
hub / github.com/postcss/postcss / get

Method get

lib/node.js:161–169  ·  view source on GitHub ↗
(node, prop)

Source from the content-addressed store, hash-verified

159 getProxyProcessor() {
160 return {
161 get(node, prop) {
162 if (prop === 'proxyOf') {
163 return node
164 } else if (prop === 'root') {
165 return () => node.root().toProxy()
166 } else {
167 return node[prop]
168 }
169 },
170
171 set(node, prop, value) {
172 if (node[prop] === value) return true

Callers 4

toJSONMethod · 0.45
pathMethod · 0.45
toFileUrlMethod · 0.45
toUrlMethod · 0.45

Calls 2

toProxyMethod · 0.80
rootMethod · 0.45

Tested by

no test coverage detected