Collects legacy member declaration strings for the class code prototype.

Iterates the typed collections in the order fields, constants, type aliases and returns each member’s preserved definition text. Members without declaration text are skipped, matching v1.0 behavior where such entries never entered the untyped string list.

Returns:

The member declaration strings, in fields/constants/type_aliases order.

Methods

collect_member_declarations

collect_member_declarations(cls: ClassModel) -> List[str]

Collects legacy member declaration strings for the class code prototype.

Iterates the typed collections in the order fields, constants, type aliases and returns each member’s preserved definition text. Members without declaration text are skipped, matching v1.0 behavior where such entries never entered the untyped string list.

Returns:

The member declaration strings, in fields/constants/type_aliases order.

ParameterTypeDescription
clsClassModelThe class model whose fields, constants, and type aliases are

Generated with Flude

Copyright © 2026