Function
boolProp
(v: boolean | (() => boolean) | undefined, self: any)
Source from the content-addressed store, hash-verified
| 57 | export function isSyntaxGateEnabled(): boolean { return gateEnabled; } |
| 58 | |
| 59 | function 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. */ |
| 65 | export function findIssuesInTree(root: TSNodeLike, content: string): SyntaxIssue[] { |
Tested by
no test coverage detected