Ejemplo n.º 1
0
 public ErrArgSymKind(Symbol sym)
 {
     eak = ErrArgKind.SymKind;
     eaf = ErrArgFlags.None;
     sk = sym.getKind();
     if (sk == SYMKIND.SK_AssemblyQualifiedNamespaceSymbol)
     {
         if (!String.IsNullOrEmpty(sym.AsAssemblyQualifiedNamespaceSymbol().GetNS().name.Text))
         {
             // Non-empty namespace name means it's not the root
             // so treat it like a namespace instead of an alias
             sk = SYMKIND.SK_NamespaceSymbol;
         }
         else
         {
             // An empty namespace name means it's just an alias for the root
             sk = SYMKIND.SK_ExternalAliasDefinitionSymbol;
         }
     }
 }