mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
17
brutal.strings/Brutal.Strings.Analyzers/Utility.cs
Normal file
17
brutal.strings/Brutal.Strings.Analyzers/Utility.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Collections.Immutable;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
public static class Utility
|
||||
{
|
||||
public static bool SequenceEqual<TSymbol>(
|
||||
ImmutableArray<TSymbol> a,
|
||||
ImmutableArray<TSymbol> b,
|
||||
SymbolEqualityComparer comparer
|
||||
)
|
||||
where TSymbol : class, ISymbol
|
||||
{
|
||||
var aUp = ImmutableArray<ISymbol>.CastUp(a);
|
||||
var bUp = ImmutableArray<ISymbol>.CastUp(b);
|
||||
return aUp.SequenceEqual(bUp, comparer);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue