78 references to EqualityComparer
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
30
var result = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
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
)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
20
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
SyntaxKindSet.cs (10)
14
public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
30
public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
50
public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
64
public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
74
public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
83
public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
90
public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
96
public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
104
public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
110
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 (49)
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)
14
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)
18
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
34
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\PartialKeywordRecommender.cs (1)
18
private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
14
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)
23
private static readonly ISet<SyntaxKind> RefMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
45
private static readonly ISet<SyntaxKind> RefGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
63
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)
14
private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
25
private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
39
private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
56
private static readonly ISet<SyntaxKind> s_validGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
68
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
14
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\AbstractCSharpTypeSnippetProvider.cs (1)
26
private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
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
)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
30
var result = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
20
private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
SyntaxKindSet.cs (10)
14
public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
30
public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
50
public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
64
public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
74
public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
83
public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
90
public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
96
public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
104
public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)
110
public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.
EqualityComparer
)