示例#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));
 }
示例#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); }));
        }
示例#3
0
 public static MessageContext Field(CCI.Field field)
 {
     return(Field(null, field));
 }