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