Exemplo n.º 1
0
 public override int GetGlyph(Cci.Member member)
 {
     Cci.Field f = member as Cci.Field;
     if (f != null && f.DeclaringType == null && f.IsCompilerControlled)
     {
         return((int)ScopeIconGroup.IconGroupFieldYellow + (int)ScopeIconItem.IconItemPublic);
     }
     return(base.GetGlyph(member));
 }
Exemplo n.º 2
0
        public static MessageContext Field(MessageContext parent, CCI.Field field)
        {
            var loc = default(Location);

            if (field.SourceContext.Document != null)
            {
                loc = field.SourceContext.ToLocation();
            }
            else if (field.Name != null && field.Name.SourceContext.Document != null)
            {
                loc = field.Name.SourceContext.ToLocation();
            }
            return(new MessageContext(parent, loc, sb => { sb.Append(field.FullName); }));
        }
Exemplo n.º 3
0
 public static MessageContext Field(CCI.Field field)
 {
     return(Field(null, field));
 }