Skip to content

parseNamedDeclaration

parseNamedDeclaration(declaration, ctx, pathLabel, required): AttributeNode

Defined in: metadata-parser.ts:131

Parse an interface or type alias declaration into one attribute-node tree.

InterfaceDeclaration | TypeAliasDeclaration

TypeScript declaration node to parse.

AnalysisContext

Shared analysis context used for type resolution and recursion detection.

string

Human-readable path label for diagnostics.

boolean

Whether the resulting node should be marked as required.

AttributeNode

The parsed attribute-node representation for the declaration.