45 references to SectionMatch
Microsoft.CodeAnalysis.CodeStyle (45)
EditorConfigFile.cs (4)
33=> TryGetSectionForLanguage(language, SectionMatch.ExactLanguageMatch, out sectionResult); 40SectionMatch matchKind, 65return TryGetSectionForFilePath(filePath, SectionMatch.ExactLanguageMatch, out sectionResult); 73SectionMatch matchKind,
Section.cs (16)
72/// <param name="matchKind">The criteria for which we consider a language a mache the default is <see cref="SectionMatch.ExactLanguageMatch"/>.</param> 74public bool SupportsLanguage(Language language, SectionMatch matchKind = default) 81/// <param name="matchKind">The criteria for which we consider a language a mache the default is <see cref="SectionMatch.ExactLanguageMatch"/>.</param> 87public bool SupportsFilePath(string codeFilePath, SectionMatch matchKind = default) 90public SectionMatch GetMatchKind(Language language) 94return SectionMatch.GlobalSectionMatch; 99return SectionMatch.SplatMatch; 105return SectionMatch.NoMatch; 111public SectionMatch GetMatchKind(string codeFilePath) 115return SectionMatch.GlobalSectionMatch; 120return SectionMatch.SplatMatch; 126return SectionMatch.NoMatch; 132return SectionMatch.NoMatch; 135var languageMatchKind = matcher.GetLanguageMatchKind(language); 138if (languageMatchKind.IsWorseMatchThan(SectionMatch.AnyLanguageMatch)) 152return SectionMatch.SupersetFilePatternMatch;
SectionMatcher.cs (17)
33public bool IsLanguageMatch(Language language, SectionMatch matchKind = default) 36public bool IsPathMatch(string relativePath, SectionMatch matchKind = default) 42public SectionMatch GetLanguageMatchKind(Language language) 46return SectionMatch.ExactLanguageMatch; 51return SectionMatch.ExactLanguageMatchWithOthers; 56return SectionMatch.AnyLanguageMatch; 63return SectionMatch.SupersetFilePatternMatch; 66return SectionMatch.FilePatternMatch; 69return SectionMatch.NoMatch; 72public SectionMatch GetPathMatchKind(string relativePath) 76return SectionMatch.NoMatch; 81return SectionMatch.ExactLanguageMatch; 86return SectionMatch.ExactLanguageMatchWithOthers; 91return SectionMatch.AnyLanguageMatch; 98return SectionMatch.SupersetFilePatternMatch; 101return SectionMatch.FilePatternMatch; 104return SectionMatch.NoMatch;
SectionMatchExtensions.cs (8)
9public static bool IsWorseMatchThan(this SectionMatch actualMatchKind, SectionMatch expectedMatchKind) 16public static bool IsWorseOrEqualMatchThan(this SectionMatch actualMatchKind, SectionMatch expectedMatchKind) 23public static bool IsBetterMatchThan(this SectionMatch actualMatchKind, SectionMatch expectedMatchKind) 30public static bool IsBetterOrEqualMatchThan(this SectionMatch actualMatchKind, SectionMatch expectedMatchKind)