Exemple #1
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++;
        }