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