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