コード例 #1
0
        private int ProcessOptionsSection(int nextToken)
        {
            // find where the options start
            IEnumerator <SqlModuleOption> optionEnum = CodeObject.Options.GetEnumerator();

            if (optionEnum.MoveNext())
            {
                ProcessAndNormalizeWhitespaceRange(nextToken, optionEnum.Current.Position.startTokenNumber,
                                                   FormatterUtilities.NormalizeNewLinesEnsureOneNewLineMinimum);

                // Process options
                ProcessChild(optionEnum.Current);
                SqlModuleOption previousOption = optionEnum.Current;
                while (optionEnum.MoveNext())
                {
                    CommaSeparatedList.ProcessInterChildRegion(previousOption, optionEnum.Current);
                    ProcessChild(optionEnum.Current);
                    previousOption = optionEnum.Current;
                }
                nextToken = previousOption.Position.endTokenNumber;
            }

            return(nextToken);
        }
コード例 #2
0
 public override void Visit(SqlModuleOption codeObject)
 {
 }