Source/NFX/CodeAnalysis/PatternSearch.cs
/// <summary>
/// Returns true when token's type is any of the specified
/// </summary>
Returns true when token's type is any of the specified
Returns true when token ' s type is any of the specified
public static bool TypeIsAnyOf<TToken, TTokenType>(this TToken token,
                                                          params TTokenType[] types) where TToken : Token
                                                                                     where TTokenType : struct, IConvertible
       {
         foreach(var t in types)
          if (token.OrdinalType == Convert.ToInt32(t)) return true;
         return false;
       }
public static bool TypeIsAnyOf < TToken , TTokenType > ( this TToken token , params TTokenType [ ] types ) where TToken : Token where TTokenType : struct , IConvertible { foreach ( var t in types ) if ( token . OrdinalType == Convert . ToInt32 ( t ) ) return true ; return false ; }
Returns true when token's type is any of the specified
Returns true when token ' s type is any of the specified
TToken
this