public bool GetMethodBounds(out LineNumberEntry start, out LineNumberEntry end)
{
start = end = LineNumberEntry.Null;
bool have_start = false;
foreach (LineNumberEntry entry in _line_numbers) {
if (entry.IsHidden)
continue;
if (!have_start) {
start = end = entry;
have_start = true;
}
if (entry.Row > end.Row)
end = entry;
}
if (!have_start || (start.File != end.File))
return false;
return true;
}