Пример #1
0
 public override void EnterExtractFunctionCall(MySqlParser.ExtractFunctionCallContext context)
 {
     if (_isOtherListener == 1 && Rules.Count > 0 && _isFirst)
     {
         Rules.Remove(Rules[Rules.Count - 1]);
         _isFirst = false;
     }
 }
Пример #2
0
        public override void EnterExtractFunctionCall(MySqlParser.ExtractFunctionCallContext context)
        {
            if (_blocked == 1)
            {
                ExtractFunctionCall extractFunctionCall =
                    new ExtractFunctionCall(context.SourceInterval, context, context.GetText());
                _output       = extractFunctionCall.Text;
                _functionName = context.Start.Text;
            }

            _blocked++;
        }
        public override void EnterExtractFunctionCall(MySqlParser.ExtractFunctionCallContext context)
        {
            if (_isOtherListener == 1)
            {
                if (context.ChildCount > 1)
                {
                    Rules.Remove(Rules[Rules.Count - 1]);
                }

                ExtractFunctionCall extractFunctionCall =
                    new ExtractFunctionCall(context.SourceInterval, context, context.GetText());

                Rules.Add(extractFunctionCall);
            }
            _isOtherListener++;
        }
 public override void ExitExtractFunctionCall(MySqlParser.ExtractFunctionCallContext context)
 {
     _isOtherListener--;
 }
Пример #5
0
 public override void ExitExtractFunctionCall(MySqlParser.ExtractFunctionCallContext context)
 {
     _blocked--;
 }