1 instantiation of EditorConfigFile
Microsoft.Build (1)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (1)
124
return new
EditorConfigFile
(globalSection!, namedSectionBuilder.ToImmutable());
51 references to EditorConfigFile
Microsoft.Build (9)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (1)
66
internal static
EditorConfigFile
Parse(string text)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
68
/// Takes a <see cref="
EditorConfigFile
.Section.Name"/> and creates a matcher that
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (7)
20
private readonly ConcurrentDictionary<string,
EditorConfigFile
> _editorConfigFileCache = new ConcurrentDictionary<string,
EditorConfigFile
>(StringComparer.InvariantCultureIgnoreCase);
32
internal List<
EditorConfigFile
> DiscoverEditorConfigFiles(string filePath)
34
var editorConfigDataFromFilesList = new List<
EditorConfigFile
>();
42
var
editorConfig = _editorConfigFileCache.GetOrAdd(editorConfigFilePath, (key) =>
48
return
EditorConfigFile
.Parse(editorConfigfileContent);
73
internal Dictionary<string, string> MergeEditorConfigFiles(List<
EditorConfigFile
> editorConfigFiles, string filePath)
Microsoft.Build.BuildCheck.UnitTests (42)
EditorConfig_Tests.cs (32)
767
var
config =
EditorConfigFile
.Parse("""
801
var
config =
EditorConfigFile
.Parse(@"is_global = true
856
var
config =
EditorConfigFile
.Parse(@"
871
var
config =
EditorConfigFile
.Parse(@"
884
var
config =
EditorConfigFile
.Parse(@"
908
var
config =
EditorConfigFile
.Parse(@"
920
var
config =
EditorConfigFile
.Parse(@"
932
var
config =
EditorConfigFile
.Parse(@"
947
var
config =
EditorConfigFile
.Parse(@"
962
var
config =
EditorConfigFile
.Parse(@"
976
var
config =
EditorConfigFile
.Parse(@"
988
var
config =
EditorConfigFile
.Parse(@"
1000
var
config =
EditorConfigFile
.Parse(@"
1014
var
config =
EditorConfigFile
.Parse(@"
1031
var
config =
EditorConfigFile
.Parse(@"
1045
var
config =
EditorConfigFile
.Parse(@"
EditorConfigParser_Tests.cs (10)
19
var configs = new List<
EditorConfigFile
>(){
20
EditorConfigFile
.Parse(""""
23
EditorConfigFile
.Parse(""""
26
EditorConfigFile
.Parse(""""
39
var configs = new List<
EditorConfigFile
>(){
40
EditorConfigFile
.Parse(""""
44
EditorConfigFile
.Parse(""""
48
EditorConfigFile
.Parse(""""
130
var
result =
EditorConfigFile
.Parse(mixedEndingsText);