Exemple #1
0
 public override void EnterQueryExpression(MySqlParser.QueryExpressionContext context)
 {
     if (_isOtherListener == 1 && Rules.Count > 0 && _isFirst)
     {
         Rules.Remove(Rules[Rules.Count - 1]);
         _isFirst = false;
     }
 }
        public override void EnterQueryExpression(MySqlParser.QueryExpressionContext context)
        {
            if (_isOtherListener == 1)
            {
                if (context.ChildCount > 1)
                {
                    Rules.Remove(Rules[Rules.Count - 1]);
                }

                QueryExpression queryExpression =
                    new QueryExpression(context.SourceInterval, context, context.GetText());

                Rules.Add(queryExpression);
            }
            _isOtherListener++;
        }
 public override void ExitQueryExpression(MySqlParser.QueryExpressionContext context)
 {
     _isOtherListener--;
 }