Skip to content

Add ISymbol.MetadataToken#55913

Merged
davidwengier merged 9 commits intodotnet:mainfrom
davidwengier:ISymbolDotMetadataToken
Sep 15, 2021
Merged

Add ISymbol.MetadataToken#55913
davidwengier merged 9 commits intodotnet:mainfrom
davidwengier:ISymbolDotMetadataToken

Conversation

@davidwengier
Copy link
Member

Fixes #53486

Needed for #55834

@davidwengier davidwengier requested review from a team as code owners August 26, 2021 03:49
@ghost ghost added the Area-Compilers label Aug 26, 2021
@davidwengier davidwengier removed the request for review from a team August 26, 2021 03:49

string ISymbol.MetadataName => _name;

int ISymbol.MetadataToken => 0;
Copy link
Member

@jcouv jcouv Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are non-PE symbols covered in tests? #Closed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There aren't explicit asserts that the value is 0, no. Will add some.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a simple test. Not sure if there was anywhere else specifically these checks should be added?

@jcouv jcouv self-assigned this Aug 30, 2021
Copy link
Member

@RikkiGibson RikkiGibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done with review pass (iteration 5).

@davidwengier
Copy link
Member Author

Ping @dotnet/roslyn-compiler / @jcouv for second review

@davidwengier
Copy link
Member Author

Ping @jcouv

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 9)

@davidwengier davidwengier merged commit d5988d7 into dotnet:main Sep 15, 2021
@davidwengier davidwengier deleted the ISymbolDotMetadataToken branch September 15, 2021 22:32
@ghost ghost added this to the Next milestone Sep 15, 2021
@Cosifne Cosifne modified the milestones: Next, 17.0.P5 Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add public API to retrieve metadata token from ISymbol

4 participants