Skip to content

ILLink should build type info after custom steps run for a type #104266

@sbomer

Description

@sbomer

Context: #103987 (comment)

Custom steps rely on the ability to add methods to a type. This only works if the TypeMapInfo cache for that type is built after the custom step gets a chance to process the type, otherwise we miss interface methods that are implemented by the custom step.

As far as I can tell this was never guaranteed, and is heavily order-dependent. To make this guarantee for custom steps we might need to build the type info cache per type, instead of per assembly, and ensure it never gets built for a type before we call into the custom step for a type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tools-ILLink.NET linker development as well as trimming analyzersin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions