Skip to content

Trim analyzer: Implement type name parsing #95118

Description

@vitek-karas

For example:

// Should produce warning because we should be able to parse the type name, resolve it// and find the method with RUC and thus issue a warning due to potential access to that method.Type.GetType("TypeWithRUCMethod").GetMethods();

This is also happening in places with annotated string values.

There's a TODO in the code about this:

// TODO: Implement type name resolution to type symbol
// Important corner cases:
// IL2105 (see it's occurences in the tests) - non-assembly qualified type name which doesn't resolve warns
// - will need to figure out what analyzer should do around this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions