6 references to Compare
Microsoft.CodeAnalysis.CSharp (6)
Compilation\LexicalOrderSymbolComparer.cs (1)
38
comparison = LexicalSortKey.
Compare
(xSortKey, ySortKey);
Symbols\LexicalSortKey.cs (1)
123
int comparison =
Compare
(xSortKey, ySortKey);
Symbols\Source\SourceMemberContainerSymbol.cs (4)
2998
Debug.Assert(LexicalSortKey.
Compare
(new LexicalSortKey(initializers[i - 1].First().Syntax, compilation), new LexicalSortKey(initializers[i].Last().Syntax, compilation)) < 0);
3003
Debug.Assert(LexicalSortKey.
Compare
(new LexicalSortKey(initializers[i].First().Syntax, compilation), new LexicalSortKey(initializers[i + 1].Last().Syntax, compilation)) < 0);
3008
Debug.Assert(LexicalSortKey.
Compare
(new LexicalSortKey(initializers[i].First().Syntax, compilation), new LexicalSortKey(initializers[i].Last().Syntax, compilation)) < 0);
3068
if (LexicalSortKey.
Compare
(sortKey, new LexicalSortKey(declaredMembers.InstanceInitializers[insertAt][0].Syntax, compilation)) < 0)