public static MessageContext Event(MessageContext parent, CCI.Event evnt) { var loc = default(Location); if (evnt.SourceContext.Document != null) { loc = evnt.SourceContext.ToLocation(); } else if (evnt.Name != null && evnt.Name.SourceContext.Document != null) { loc = evnt.Name.SourceContext.ToLocation(); } return(new MessageContext(parent, loc, sb => { sb.Append(evnt.FullName); })); }
public static MessageContext Event(CCI.Event evnt) { return(Event(null, evnt)); }