25
25
#pragma warning disable 1587
26
26
namespace Mono . Debugging . Tests
27
27
{
28
- public partial class TextFile
28
+ public interface ITextFile
29
29
{
30
30
// TODO: Implement in another part of the class
31
31
32
- /// <summary>
33
- /// Reads file from given path
34
- /// </summary>
35
- /// <param name="sourcePath"></param>
36
- /// <returns></returns>
37
- // public static TextFile ReadFile (string sourcePath)
38
- // {
39
- // }
40
-
41
32
/// <summary>
42
33
/// Content of the file
43
34
/// </summary>
44
- // public string Text { get; }
35
+ string Text { get ; }
45
36
/// <summary>
46
37
/// Full path to file
47
38
/// </summary>
48
- // public string Name { get; }
39
+ string Name { get ; }
49
40
50
41
/// <summary>
51
42
/// Returns line and column (1-based) by given offset (0-based)
52
43
/// </summary>
53
44
/// <param name="offset">0-based</param>
54
45
/// <param name="line">1-based</param>
55
46
/// <param name="col">1-based</param>
56
- // public void GetLineColumnFromPosition (int offset, out int line, out int col)
57
- // {
58
- // }
47
+ void GetLineColumnFromPosition ( int offset , out int line , out int col ) ;
59
48
60
49
/// <summary>
61
50
/// Returns offset by given line and column (1-based)
62
51
/// </summary>
63
52
/// <param name="line">line (1-based)</param>
64
53
/// <param name="column">column (1-based)</param>
65
54
/// <returns>offset (0-based)</returns>
66
- // public int GetPositionFromLineColumn (int line, int column)
67
- // {
68
- // }
55
+ int GetPositionFromLineColumn ( int line , int column ) ;
69
56
70
57
/// <summary>
71
58
/// Returns the text starting from <paramref name="startOffset"/> with length=<paramref name="endOffset"/>
72
59
/// </summary>
73
60
/// <param name="startOffset">0-based starting offset</param>
74
61
/// <param name="endOffset">0-based end offset</param>
75
62
/// <returns></returns>
76
- // public string GetText(int startOffset, int endOffset)
77
- // {
78
- // }
63
+ string GetText ( int startOffset , int endOffset ) ;
79
64
80
65
/// <summary>
81
66
/// Returns length of the given line (1-based)
82
67
/// </summary>
83
68
/// <param name="line">1-based line</param>
84
69
/// <returns></returns>
85
- // public int GetLineLength (int line)
86
- // {
87
- // }
70
+ int GetLineLength ( int line ) ;
88
71
}
89
72
}
0 commit comments