private TypeAttributes ContextToClassModifiers(XSharpParser.ClassModifiersContext modifiers)
 {
     TypeAttributes retValue = TypeAttributes.Public;
     ITerminalNode[] visibility;
     //
     visibility = modifiers.INTERNAL();
     if (visibility.Length > 0)
         retValue = TypeAttributes.NestedAssembly;
     //
     visibility = modifiers.HIDDEN();
     if (visibility.Length > 0)
         retValue = TypeAttributes.NestedPrivate;
     //
     visibility = modifiers.PRIVATE();
     if (visibility.Length > 0)
         retValue = TypeAttributes.NestedPrivate;
     //
     visibility = modifiers.PROTECTED();
     if (visibility.Length > 0)
     {
         visibility = modifiers.INTERNAL();
         if (visibility.Length > 0)
             retValue = TypeAttributes.NestedFamORAssem;
         else
             retValue = TypeAttributes.NestedFamily;
     }
     //
     visibility = modifiers.EXPORT();
     if (visibility.Length > 0)
         retValue = TypeAttributes.Public;
     //
     return retValue;
 }