public static bool IsKindAny(this SyntaxToken CSNode, params SyntaxKind [] CSKinds) { return(CSKinds.Any(csk => CSNode.CSharpKind( ) == csk)); }
public static bool IsKindNoneOf(this SyntaxToken CSNode, params SyntaxKind [] CSKinds) { return(CSKinds.All(csk => CSNode.CSharpKind( ) != csk)); }
public static bool IsTriviaAny(this SyntaxTrivia CSNode, params SyntaxKind [] CSKinds) { return(CSKinds.Any(csk => CSNode.IsKind(csk))); }