Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ISymbol.MetadataToken #55913

Merged
merged 9 commits into from
Sep 15, 2021

Conversation

davidwengier
Copy link
Contributor

Fixes #53486

Needed for #55834

@davidwengier davidwengier requested review from a team as code owners August 26, 2021 03:49
@davidwengier davidwengier removed the request for review from a team August 26, 2021 03:49
@@ -103,6 +103,8 @@ ImmutableArray<SymbolDisplayPart> ISymbol.ToMinimalDisplayParts(SemanticModel se

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
Contributor 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
Contributor 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
Contributor

@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
Contributor Author

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

@davidwengier
Copy link
Contributor 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