MCPcopy Index your code
hub / github.com/gpujs/gpu.js / getCheckVariableType

Method getCheckVariableType

src/backend/function-node.js:574–580  ·  view source on GitHub ↗
(ast)

Source from the content-addressed store, hash-verified

572 }
573
574 getCheckVariableType(ast) {
575 const type = this.getVariableType(ast);
576 if (!type) {
577 throw this.astErrorOutput(`${ast.type} is not defined`, ast);
578 }
579 return type;
580 }
581
582 inferArgumentTypesIfNeeded(functionName, args) {
583 // ensure arguments are filled in, so when we lookup return type, we already can infer it

Callers 1

getTypeMethod · 0.95

Calls 2

getVariableTypeMethod · 0.95
astErrorOutputMethod · 0.95

Tested by

no test coverage detected