コード例 #1
0
        public static void LogWarning(this IOutputWriter outputWriter, string warning, MethodDefinition method)
        {
            warning = string.Format("{0} - {1}", method.FullName, warning);
            SequencePoint sequencePoint = GetSequencePoint(method.Body);

            if (sequencePoint == null)
            {
                outputWriter.LogWarning(warning);
                return;
            }

            outputWriter.LogWarning(warning, sequencePoint.Document.Url, sequencePoint.StartLine, sequencePoint.StartColumn);
        }