Skip to content

createAnalysisContext

createAnalysisContext(projectRoot, typesFilePath, maxRecursiveDepth?): AnalysisContext

Defined in: metadata-analysis.ts:423

Create or reuse the compiler analysis context for one metadata source file.

string

Project root used for module resolution and dependency tracking.

string

Absolute path to the source types file being analyzed.

number = DEFAULT_MAX_RECURSIVE_DEPTH

Maximum depth to unroll recursive type declarations.

AnalysisContext

An analysis context containing the TypeScript program, checker, and recursion guards.