ProjectDataMerger.cs (31)
22 ForwardCompat.TryReadVersionHeader(CacheFormat.VersionHeader, out int major, out _) ? major : 2;
278 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Properties));
289 writer.WriteLine(CacheFormat.SectionHeader(section));
299 writer.WriteLine(CacheFormat.SliceSeparator);
308 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.SliceDimensions));
318 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Properties));
346 writer.WriteLine(CacheFormat.SectionHeader(section));
369 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Properties));
379 writer.WriteLine(CacheFormat.SectionHeader(section));
389 writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.Sections.Project));
390 foreach (string line in lines.Where(static l => l.StartsWith(CacheFormat.ProjectHeaderPrefix, StringComparison.Ordinal)))
392 writer.Write(CacheFormat.LanguagePrefix); writer.WriteLine("C#");
394 writer.WriteLine(CacheFormat.PrimaryMarker);
395 foreach (string line in lines.Where(static l => !l.StartsWith(CacheFormat.ProjectHeaderPrefix, StringComparison.Ordinal)))
483 if (line[0] == CacheFormat.CommentChar) continue;
489 if (currentSection != CacheFormat.Sections.Project && currentSection != CacheFormat.Sections.SliceDimensions && currentSection != CacheFormat.Sections.Properties)
499 case CacheFormat.Sections.Project:
500 if (string.Equals(line, CacheFormat.PrimaryMarker, StringComparison.Ordinal))
502 else if (!line.StartsWith(CacheFormat.LanguagePrefix, StringComparison.Ordinal))
505 case CacheFormat.Sections.SliceDimensions:
508 case CacheFormat.Sections.Properties:
512 currentList?.Add(string.Equals(currentSection, CacheFormat.Sections.SdkAnalyzerConfigPolicy, StringComparison.Ordinal)
556 if (string.Equals(line.TrimEnd('\r'), CacheFormat.SliceSeparator, StringComparison.Ordinal))
673 writer.WriteLine(CacheFormat.VersionHeader);