MCPcopy Create free account
hub / github.com/arktypeio/arktype / isInertMetaRead

Function isInertMetaRead

ark/aot/usage.ts:922–929  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

920
921// e.g. import.meta.env.PROD, which loads nothing
922const isInertMetaRead = (node: Node): boolean => {
923 const parent = node.parent
924 return (
925 parent?.type === "MemberExpression" &&
926 parent.object === node &&
927 isInertMetaProperty(memberNameOf(parent))
928 )
929}
930
931// inside a folded site, outside what its call keeps
932export const isDead = (node: Span, runtime: RuntimeModule): boolean =>

Callers 1

linkMethod · 0.85

Calls 2

isInertMetaPropertyFunction · 0.90
memberNameOfFunction · 0.90

Tested by

no test coverage detected