Exemplo n.º 1
0
 private static int GetMethodStartLineNumber(MethodDebugInformation methodDebugDefinition)
 {
     var sequencePoint =
         methodDebugDefinition.GetSequencePoints().OrderBy(s => s.StartLine).FirstOrDefault();
     var lineNumber = sequencePoint.StartLine;
     return lineNumber;
 }
Exemplo n.º 2
0
        private string GetMethodFileName(MethodDebugInformation methodDebugDefinition)
        {
            var fileName = string.Empty;
            if (!methodDebugDefinition.Document.IsNil)
            {
                var document = _reader.GetDocument(methodDebugDefinition.Document);
                fileName = _reader.GetString(document.Name);
            }

            return fileName;
        }