MCPcopy Create free account
hub / github.com/browserify/static-module / isStaticProperty

Function isStaticProperty

index.js:402–404  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

400}
401
402function isStaticProperty(node) {
403 return node.type === 'Identifier' || node.type === 'Literal';
404}
405
406function resolveProperty(node) {
407 return node.type === 'Identifier' ? node.name : node.value;

Callers 2

walkFunction · 0.85
traverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…