Пример #1
0
        protected override void VisitExecuteProcedureStatement(ExecuteProcedureStatement statement)
        {
            State.Write(Symbols.CALL);

            State.Write(statement.Name.GetFullNameWithoutQuotes());

            State.Write(Symbols.OpenParenthesis);

            VisitTokenSet(statement.Parameters.Where(p => p.Direction != ParameterDirection.ReturnValue),
                          visitToken: parameter =>
            {
                if (parameter.Value != null)
                {
                    VisitValue(parameter.Value);
                }
                else
                {
                    State.Write(parameter.Name);
                }

                State.Parameters.Add(parameter);
            });

            State.Write(Symbols.CloseParenthesis);
        }
Пример #2
0
 protected abstract void VisitExecuteProcedureStatement(ExecuteProcedureStatement statement);
Пример #3
0
 protected override void VisitExecuteProcedureStatement(ExecuteProcedureStatement statement)
 {
     throw new NotImplementedException();
 }