MCPcopy Create free account
hub / github.com/glslify/glslify / isCallCompile

Function isCallCompile

transform.js:306–312  ·  view source on GitHub ↗
(node, glvar)

Source from the content-addressed store, hash-verified

304}
305
306function isCallCompile (node, glvar) {
307 return node.type === 'Identifier' && node.name === glvar
308 && node.parent.type === 'MemberExpression'
309 && node.parent.property.name === 'compile'
310 && node.parent.parent.type === 'CallExpression'
311 && node.parent.parent.arguments[0]
312}

Callers 1

onnodeFunction · 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…