MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / boolProp

Function boolProp

src/tools/ast/syntax-check.ts:59–62  ·  view source on GitHub ↗
(v: boolean | (() => boolean) | undefined, self: any)

Source from the content-addressed store, hash-verified

57export function isSyntaxGateEnabled(): boolean { return gateEnabled; }
58
59function boolProp(v: boolean | (() => boolean) | undefined, self: any): boolean {
60 if (typeof v === 'function') { try { return !!v.call(self); } catch { return false; } }
61 return !!v;
62}
63
64/** Pure: walk a (mock or real) tree and collect ERROR / MISSING nodes. */
65export function findIssuesInTree(root: TSNodeLike, content: string): SyntaxIssue[] {

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected