csharp4405de34 | 1 | #nullable enable |
| 2 | |
| 3 | using System.Collections.Concurrent; |
| 4 | using Microsoft.CodeAnalysis; |
| 5 | |
| 6 | namespace CascadeIDE.Services.Intercom; |
| 7 | |
| 8 | /// <summary>Кэш parse/semantic model на одну отправку сообщения (один файл — одна компиляция).</summary> |
| 9 | public sealed class IntercomAttachmentRoslynResolveSession |
| 10 | { |
| 11 | private readonly ConcurrentDictionary<string, FileEntry?> _entries = new(StringComparer.OrdinalIgnoreCase); |
| 12 | |
| 13 | internal ConcurrentDictionary<string, FileEntry?> Entries => _entries; |
| 14 | |
| 15 | public sealed class FileEntry |
| 16 | { |
| 17 | public required string Text { get; init; } |
| 18 | public required SyntaxTree Tree { get; init; } |
| 19 | public required SemanticModel Model { get; init; } |
| 20 | } |
| 21 | } |
| 22 | |
View only · write via MCP/CIDE