MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / scopeProvider

Method scopeProvider

packages/language/src/zmodel-linker.ts:407–407  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

405 if (transitiveDataModel) {
406 // resolve references in the context of the transitive data model
407 const scopeProvider = (name: string) => getAllFields(transitiveDataModel).find((f) => f.name === name);
408 if (isArrayExpr(node.value)) {
409 node.value.items.forEach((item) => {
410 if (isReferenceExpr(item)) {

Callers

nothing calls this directly

Calls 2

getAllFieldsFunction · 0.90
findMethod · 0.80

Tested by

no test coverage detected