public override PatternMatchResult GetMatch(List <Token> tokens, int @from = 0) { var matchBlock = TokenSearchUtils.FindNextTokenBlock(tokens, BlockStartToken, BlockEndToken, from); var matchTokens = TokenUtils.GetMatchResultTokens(tokens, matchBlock); if (matchTokens.Any(t => ExcludeList.Contains(t.TokenType))) { return(PatternMatchResult.Empty); } return(matchBlock); }
public override PatternMatchResult GetMatch(List <Token> tokens, int @from = 0) { return(TokenSearchUtils.FindNextTokenBlock(tokens, BlockStartToken, BlockEndToken, from)); }