Exemplo n.º 1
0
        public void VisitLocalDeclarationStatement(LocalDeclarationStatementSyntax node)
        {
            if (node == null)
                throw new ArgumentNullException("node");

            node.Validate();

            WriteLeadingTrivia(node);

            _writer.WriteIndent();

            if ((node.Modifiers & Modifiers.Const) != 0)
            {
                _writer.WriteKeyword(PrinterKeyword.Const);
                _writer.WriteSpace();
            }

            node.Declaration.Accept(this);

            _writer.EndStatement();

            WriteTrailingTrivia(node);
        }