85 references to EqualityComparer
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
30
var result = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (14)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15
private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.
EqualityComparer
)
36
private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.
EqualityComparer
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
20
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (11)
11
public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
27
public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
47
public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
61
public static readonly ISet<SyntaxKind> AccessibilityModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
69
public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
79
public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
88
public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
95
public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
101
public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
109
public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
115
public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
17
private static readonly Dictionary<SyntaxKind, AbstractSyntacticSingleKeywordRecommender> s_recommenderMap = new(SyntaxFacts.
EqualityComparer
);
Microsoft.CodeAnalysis.CSharp.Features (54)
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
14
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
25
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
37
private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\AsyncKeywordRecommender.cs (1)
20
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
14
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
14
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
23
private static readonly ISet<SyntaxKind> s_validGlobalModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
15
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
14
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\EventKeywordRecommender.cs (2)
15
private static readonly ISet<SyntaxKind> s_validClassModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
31
private static readonly ISet<SyntaxKind> s_validStructModifiers = new HashSet<SyntaxKind>(s_validClassModifiers, SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (2)
14
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
22
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (3)
15
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
29
private static readonly ISet<SyntaxKind> s_validGlobalModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
39
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\FieldKeywordRecommender.cs (1)
16
private static readonly ISet<SyntaxKind> s_validTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
14
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (2)
14
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
22
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
14
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
17
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
33
protected static readonly ISet<SyntaxKind> ValidTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
14
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ParamKeywordRecommender.cs (1)
15
private static readonly ISet<SyntaxKind> s_validTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
);
Completion\KeywordRecommenders\PartialKeywordRecommender.cs (1)
18
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
16
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
14
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
25
private static readonly ISet<SyntaxKind> RefMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
47
private static readonly ISet<SyntaxKind> RefGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
65
private static readonly ISet<SyntaxKind> RefGlobalMemberScriptModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
14
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
25
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
37
private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (5)
15
private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
26
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
40
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
57
private static readonly ISet<SyntaxKind> s_validGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
69
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
15
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (4)
14
private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
27
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
44
private static readonly ISet<SyntaxKind> s_validGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
56
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
14
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
25
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (2)
15
private static readonly ISet<SyntaxKind> s_validClassInterfaceRecordModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
32
private static readonly ISet<SyntaxKind> s_validStructModifiers = new HashSet<SyntaxKind>(s_validClassInterfaceRecordModifiers, SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
15
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Snippets\CSharpClassSnippetProvider.cs (1)
25
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Snippets\CSharpConstructorSnippetProvider.cs (1)
30
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Snippets\CSharpEnumSnippetProvider.cs (1)
25
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Snippets\CSharpInterfaceSnippetProvider.cs (1)
25
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Snippets\CSharpStructSnippetProvider.cs (1)
25
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
30
var result = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15
private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.
EqualityComparer
)
36
private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.
EqualityComparer
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
20
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (11)
11
public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
27
public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
47
public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
61
public static readonly ISet<SyntaxKind> AccessibilityModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
69
public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
79
public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
88
public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
95
public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
101
public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
109
public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
115
public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)