csharpdeeb25a2 | 1 | #nullable enable |
| 2 | |
| 3 | namespace CascadeIDE.Cockpit.Graph; |
| 4 | |
| 5 | /// <summary>Узел в <see cref="GraphDocument"/> (graph-backed surface, ADR 0067).</summary> |
| 6 | public class GraphNode |
| 7 | { |
| 8 | public required string Id { get; init; } |
| 9 | public required string Path { get; init; } |
| 10 | public required string Kind { get; init; } |
| 11 | public required string Label { get; init; } |
| 12 | public string? RelativePath { get; init; } |
| 13 | public string? Rationale { get; init; } |
| 14 | /// <summary>Номер в легенде control flow (1-based).</summary> |
| 15 | public int? LegendIndex { get; init; } |
| 16 | public string? LegendText { get; init; } |
| 17 | /// <summary>1-based inclusive, снимок @ build (code anchor / reveal).</summary> |
| 18 | public int? LineStart { get; init; } |
| 19 | public int? LineEnd { get; init; } |
| 20 | /// <summary>Узлы одного цикла (while/for/foreach/do) — склейка на карте (овал вокруг группы).</summary> |
| 21 | public int? LoopGroupId { get; init; } |
| 22 | } |
| 23 | |
View only · write via MCP/CIDE