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

Function isCallFile

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

Source from the content-addressed store, hash-verified

296}
297
298function isCallFile (node, glvar) {
299 return node.type === 'Identifier' && node.name === glvar
300 && node.parent.type === 'MemberExpression'
301 && node.parent.property.name === 'file'
302 && node.parent.parent.type === 'CallExpression'
303 && node.parent.parent.arguments[0]
304}
305
306function isCallCompile (node, glvar) {
307 return node.type === 'Identifier' && node.name === glvar

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…