提交 40a7a05b 编写于 作者: J Jared Parsons 提交者: Jared Parsons

Finished the rename and responsibility change

上级 d386d97b
...@@ -14,7 +14,7 @@ namespace BuildBoss ...@@ -14,7 +14,7 @@ namespace BuildBoss
internal sealed class ProjectCheckerUtil internal sealed class ProjectCheckerUtil
{ {
private readonly ProjectData _data; private readonly ProjectData _data;
private readonly ProjectUtil _fileUtil; private readonly ProjectUtil _projectUtil;
private readonly Dictionary<ProjectKey, ProjectData> _solutionMap; private readonly Dictionary<ProjectKey, ProjectData> _solutionMap;
internal ProjectFileType ProjectType => _data.ProjectFileType; internal ProjectFileType ProjectType => _data.ProjectFileType;
...@@ -23,6 +23,7 @@ internal sealed class ProjectCheckerUtil ...@@ -23,6 +23,7 @@ internal sealed class ProjectCheckerUtil
internal ProjectCheckerUtil(ProjectData data, Dictionary<ProjectKey, ProjectData> solutionMap) internal ProjectCheckerUtil(ProjectData data, Dictionary<ProjectKey, ProjectData> solutionMap)
{ {
_data = data; _data = data;
_projectUtil = data.ProjectUtil;
_solutionMap = solutionMap; _solutionMap = solutionMap;
} }
......
...@@ -13,7 +13,7 @@ internal sealed class ProjectData ...@@ -13,7 +13,7 @@ internal sealed class ProjectData
internal ProjectKey Key { get; } internal ProjectKey Key { get; }
internal string FilePath { get; } internal string FilePath { get; }
internal XDocument Document { get; } internal XDocument Document { get; }
internal ProjectUtil ProjectFileUtil { get; } internal ProjectUtil ProjectUtil { get; }
internal string FileName => Path.GetFileName(FilePath); internal string FileName => Path.GetFileName(FilePath);
internal string Directory => Path.GetDirectoryName(FilePath); internal string Directory => Path.GetDirectoryName(FilePath);
...@@ -24,7 +24,7 @@ internal ProjectData(string filePath) ...@@ -24,7 +24,7 @@ internal ProjectData(string filePath)
Key = new ProjectKey(filePath); Key = new ProjectKey(filePath);
FilePath = Key.FilePath; FilePath = Key.FilePath;
Document = XDocument.Load(FilePath); Document = XDocument.Load(FilePath);
ProjectFileUtil = new ProjectUtil(Key, Document); ProjectUtil = new ProjectUtil(Key, Document);
} }
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册