-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[Question] How do I get all the INamedTypeSymbols in a given compilation? #6138
Copy link
Copy link
Closed
Labels
Concept-APIThis issue involves adding, removing, clarification, or modification of an API.This issue involves adding, removing, clarification, or modification of an API.QuestionResolution-AnsweredThe question has been answeredThe question has been answered
Description
I've been trying this for about 45 minutes now, but I can't seem to figure out how to get a list of all of the INamedTypeSymbol available in a given compilation. I tried digging through the Compilation.GetTypeByMetadataName stuff, but couldn't figure it out.
I tried using Compilation.GlobalNamespace.GetTypeMembers() and it seems to give me all the IModuleSymbols that are referenced by the current project. (I see mscorlib, System.Core etc.) I then tried getting the type members inside these modules, but they were either empty or contained PrivateImplementation stuff.
Is there an API to get access to all the INamedTypeSymbols available in a compilation?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Concept-APIThis issue involves adding, removing, clarification, or modification of an API.This issue involves adding, removing, clarification, or modification of an API.QuestionResolution-AnsweredThe question has been answeredThe question has been answered