mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
27 lines
697 B
C#
27 lines
697 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Cosmos.Debug.Symbols {
|
|
//public class SourceInfos : SortedList<uint, SourceInfo> {
|
|
//}
|
|
|
|
public class SourceInfo {
|
|
public string MethodName { get; set; }
|
|
public string SourceFile { get; set; }
|
|
public int LineStart { get; set; }
|
|
public int ColumnStart { get; set; }
|
|
public int LineEnd { get; set; }
|
|
public int ColumnEnd { get; set; }
|
|
|
|
public static int GetIndexClosestSmallerMatch(IList<int> aList, int aValue) {
|
|
int xIdx = -1;
|
|
for (int i = 0; i < aList.Count; i++) {
|
|
if (aList[i] <= aValue) {
|
|
xIdx = i;
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
return xIdx;
|
|
}
|
|
}
|
|
}
|