Пример #1
0
 public override void EnterOuterJoin(MySqlParser.OuterJoinContext context)
 {
     if (_isOtherListener == 1 && Rules.Count > 0 && _isFirst)
     {
         Rules.Remove(Rules[Rules.Count - 1]);
         _isFirst = false;
     }
 }
Пример #2
0
        public override void EnterOuterJoin(MySqlParser.OuterJoinContext context)
        {
            if (_isOtherListener == 1)
            {
                if (context.ChildCount > 1)
                {
                    Rules.Remove(Rules[Rules.Count - 1]);
                }

                OuterJoin outerJoin =
                    new OuterJoin(context.SourceInterval, context, context.GetText());

                Rules.Add(outerJoin);
            }
            _isOtherListener++;
        }
Пример #3
0
 public override void ExitOuterJoin(MySqlParser.OuterJoinContext context)
 {
     _isOtherListener--;
 }