public void VisitClass(ClassDeclaration declaration)
 {
     Console.WriteLine($"Good to see you, {declaration.Name}.");
 }
예제 #2
0
        public void VisitClass(ClassDeclaration declaration)
        {
            int count = declaration.Children != null ? declaration.Children.Count : 0;

            Console.WriteLine($"{declaration.Name} has {count} children.");
        }