Ejemplo n.º 1
0
        public void Empty_scope_is_handled_correctly()
        {
            builder.BeginScope();
            builder.EndScope();
            Assert.AreEqual(
                @"{
}", builder.ToString());
        }
Ejemplo n.º 2
0
        public override object VisitNamespaceDeclaration(NamespaceNode namespaceDeclaration, object data)
        {
            if (namespaceDeclaration.Name == null)
            {
                return(null);
            }

            builder.AppendLine("namespace " + namespaceDeclaration.Name.GenericIdentifier);
            builder.BeginScope();
            {
            }
            builder.EndScope();
            return(base.VisitNamespaceDeclaration(namespaceDeclaration, data));
        }