rework mapping

This commit is contained in:
Matt Parker
2025-08-17 14:18:25 +10:00
parent 5bd6b64019
commit 7f01df7369
5 changed files with 95 additions and 73 deletions

View File

@@ -1,9 +1,19 @@
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
using System.Diagnostics.CodeAnalysis;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
namespace SharpIDE.Application.Features.SolutionDiscovery;
public class SharpIdeFile : ISharpIdeNode
public class SharpIdeFile : ISharpIdeNode, IChildSharpIdeNode
{
public required IExpandableSharpIdeNode Parent { get; set; }
public required string Path { get; set; }
public required string Name { get; set; }
[SetsRequiredMembers]
internal SharpIdeFile(string fullPath, string name, IExpandableSharpIdeNode parent)
{
Path = fullPath;
Name = name;
Parent = parent;
}
}