SolutionChapter ParseChapter(FilePath basePath, List <string> lines) { SolutionChapter result = null; var start = lines[0]; var end = lines[lines.Count - 1]; if (start.StartsWith("Project")) { result = new SolutionProject(start, end, basePath); } else if (start.StartsWith("Global")) { result = new GlobalChapter(); } else { result = new SolutionChapter(start, end); // Unknown, just keep it } var sectionLines = Split(Inner(lines), l => l[1] != 'E' && l[1] != '\t'); foreach (var section in sectionLines.Select(z => ParseSection(z))) { result.Sections.Add(section); } return(result); }
public ProjectConfigurationPlatforms(GlobalChapter globalChapter) { this.globalChapter = globalChapter; }