16440bcf43
* Moved AddHandler<T> and AddHandler(Type) methods from IHandlersCollection to extension methods * Added public constructor to IHost types form extensibility * Code cleanup
13 lines
366 B
C#
13 lines
366 B
C#
using Microsoft.CodeAnalysis;
|
|
|
|
namespace Telegrator.RoslynGenerators.RoslynExtensions
|
|
{
|
|
public static class SyntaxTokenExtensions
|
|
{
|
|
public static bool HasModifiers(this SyntaxTokenList modifiers, params string[] expected)
|
|
{
|
|
return modifiers.Count(mod => expected.Contains(mod.ToString())) == expected.Length;
|
|
}
|
|
}
|
|
}
|