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

Function isFromStdlib

packages/sdk/src/model-utils.ts:115–118  ·  view source on GitHub ↗
(node: AstNode)

Source from the content-addressed store, hash-verified

113}
114
115export function isFromStdlib(node: AstNode) {
116 const model = getContainingModel(node);
117 return !!model && !!model.$document && model.$document.uri.path.endsWith('stdlib.zmodel');
118}
119
120export function getContainingModel(node: AstNode | undefined): Model | null {
121 if (!node) {

Callers

nothing calls this directly

Calls 1

getContainingModelFunction · 0.85

Tested by

no test coverage detected