How to access type definition visibility

Topics: Metadata Model, Source Model
Apr 9, 2014 at 7:21 PM
Hi everybody,

I have posted this question already in the CCI Code forum, but I haven't received any response yet. Therefore I duplicate my question into this forum (excuse me):

I am using CCI to analyze and visualize assemblies.
(you can take a look at two demo screen casts at
http://www.sharpmetrics.net/index.php/visualisierung/staedtemetapher/beispiel-sharpcity
, web page is currently only in german, sorry)
I have already releases a simple tool to create Famix models with can be imported into the MOOSE platform and CodeCity - this tool can be downloaded from my page).

But currently I am struggling to extract the visibililty information from the analyzed types.
If I have an Microsoft.Cci.MutableCodeModel.NestedTypeDefinition I have access to the visibility, but If I have an I have only the IsPublic property.
Can anybody give me a clue how to access the visibility of a type.


Thank you very much
Thomas

P.S: another question just came to my mind: will this project evolve into the roslyn project? (perhaps this has already happens, since the roslyn source code contains CCI stuff.