Skip to content

AnalysisContext

Defined in: metadata-analysis.ts:12

Hold shared compiler state for metadata parsing and symbol resolution.

allowedExternalPackages: Set<string>

Defined in: metadata-analysis.ts:13


checker: TypeChecker

Defined in: metadata-analysis.ts:14


maxRecursiveDepth: number

Defined in: metadata-analysis.ts:19

Maximum number of times a single recursive type declaration is unrolled before the parser emits a terminal leaf node.


packageNameCache: Map<string, string | null>

Defined in: metadata-analysis.ts:20


projectRoot: string

Defined in: metadata-analysis.ts:21


program: Program

Defined in: metadata-analysis.ts:22


recursionDepth: Map<string, number>

Defined in: metadata-analysis.ts:27

Tracks the current unrolling depth per recursive type declaration key (${fileName}:${typeName}). Replaces the former hard-throw presence set.


totalNodeCount: number

Defined in: metadata-analysis.ts:32

Total number of attribute nodes created during this analysis run. Capped to prevent exponential blowups from multi-branch recursive types.