コード例 #1
0
        public static MessageContext Property(MessageContext parent, CCI.Property prop)
        {
            var loc = default(Location);

            if (prop.SourceContext.Document != null)
            {
                loc = prop.SourceContext.ToLocation();
            }
            else if (prop.Name != null && prop.Name.SourceContext.Document != null)
            {
                loc = prop.Name.SourceContext.ToLocation();
            }
            return(new MessageContext(parent, loc, sb => { sb.Append(prop.FullName); }));
        }
コード例 #2
0
 public static MessageContext Property(CCI.Property prop)
 {
     return(Property(null, prop));
 }