-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathSymbolModels.cs
More file actions
70 lines (63 loc) · 1.77 KB
/
SymbolModels.cs
File metadata and controls
70 lines (63 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System.Collections.Generic;
namespace CodingWithCalvin.MCPServer.Shared.Models;
public enum SymbolKind
{
Unknown,
Namespace,
Class,
Struct,
Interface,
Enum,
Delegate,
Function,
Property,
Field,
Event,
Variable,
Parameter,
EnumMember,
Constant
}
public class SymbolInfo
{
public string Name { get; set; } = string.Empty;
public string FullName { get; set; } = string.Empty;
public SymbolKind Kind { get; set; }
public string FilePath { get; set; } = string.Empty;
public int StartLine { get; set; }
public int StartColumn { get; set; }
public int EndLine { get; set; }
public int EndColumn { get; set; }
public string ContainerName { get; set; } = string.Empty;
public List<SymbolInfo> Children { get; set; } = new();
}
public class LocationInfo
{
public string FilePath { get; set; } = string.Empty;
public int Line { get; set; }
public int Column { get; set; }
public int EndLine { get; set; }
public int EndColumn { get; set; }
public string Preview { get; set; } = string.Empty;
}
public class WorkspaceSymbolResult
{
public List<SymbolInfo> Symbols { get; set; } = new();
public int TotalCount { get; set; }
public bool Truncated { get; set; }
}
public class DefinitionResult
{
public bool Found { get; set; }
public List<LocationInfo> Definitions { get; set; } = new();
public string SymbolName { get; set; } = string.Empty;
public SymbolKind SymbolKind { get; set; }
}
public class ReferencesResult
{
public bool Found { get; set; }
public List<LocationInfo> References { get; set; } = new();
public string SymbolName { get; set; } = string.Empty;
public int TotalCount { get; set; }
public bool Truncated { get; set; }
}