public override void EnterLikePredicate(MySqlParser.LikePredicateContext context) { if (_isOtherListener == 1 && Rules.Count > 0 && _isFirst) { Rules.Remove(Rules[Rules.Count - 1]); _isFirst = false; } }
public override void EnterLikePredicate(MySqlParser.LikePredicateContext context) { if (_isOtherListener == 1) { LikePredicate likePredicate = new LikePredicate(context.SourceInterval, context, context.GetText()); Rules.Remove(Rules[Rules.Count - 1]); Rules.Add(likePredicate); } _isOtherListener++; }
public override void ExitLikePredicate(MySqlParser.LikePredicateContext context) { _isOtherListener--; }