Exemplo n.º 1
0
 public AnalyzerScope(AssemblyList assemblyList, IEntity entity)
 {
     AssemblyList         = assemblyList;
     assemblyListSnapshot = assemblyList.GetSnapshot();
     AnalyzedSymbol       = entity;
     if (entity is ITypeDefinition type)
     {
         typeScope = type;
         effectiveAccessibility = DetermineEffectiveAccessibility(ref typeScope, Accessibility.Public);
     }
     else
     {
         typeScope = entity.DeclaringTypeDefinition;
         effectiveAccessibility = DetermineEffectiveAccessibility(ref typeScope, entity.Accessibility);
     }
     IsLocal = effectiveAccessibility.LessThanOrEqual(Accessibility.Private);
 }