ProjectDataMerger.cs (31)
22 ForwardCompat.TryReadVersionHeader(CacheFormat.VersionHeader, out int major, out _) ? major : 2;
198 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Properties));
209 writer.WriteLine(CacheFormat.SectionHeader(section));
219 writer.WriteLine(CacheFormat.SliceSeparator);
228 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.SliceDimensions));
238 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Properties));
266 writer.WriteLine(CacheFormat.SectionHeader(section));
289 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Properties));
299 writer.WriteLine(CacheFormat.SectionHeader(section));
309 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Project));
310 foreach (string line in lines.Where(static l => l.StartsWith(CacheFormat.ProjectHeaderPrefix, StringComparison.Ordinal)))
312 writer.Write(CacheFormat.LanguagePrefix); writer.WriteLine("C#");
314 writer.WriteLine(CacheFormat.PrimaryMarker);
315 foreach (string line in lines.Where(static l => !l.StartsWith(CacheFormat.ProjectHeaderPrefix, StringComparison.Ordinal)))
403 if (line[0] == CacheFormat.CommentChar) continue;
409 if (currentSection != CacheFormat.Sections.Project && currentSection != CacheFormat.Sections.SliceDimensions && currentSection != CacheFormat.Sections.Properties)
419 case CacheFormat.Sections.Project:
420 if (string.Equals(line, CacheFormat.PrimaryMarker, StringComparison.Ordinal))
422 else if (!line.StartsWith(CacheFormat.LanguagePrefix, StringComparison.Ordinal))
425 case CacheFormat.Sections.SliceDimensions:
428 case CacheFormat.Sections.Properties:
432 currentList?.Add(string.Equals(currentSection, CacheFormat.Sections.SdkAnalyzerConfigPolicy, StringComparison.Ordinal)
476 if (string.Equals(line.TrimEnd('\r'), CacheFormat.SliceSeparator, StringComparison.Ordinal))
593 writer.WriteLine(CacheFormat.VersionHeader);