Ejemplo n.º 1
0
        private static int GetAllDocumentTypesCount(CompilationUnitSyntax root)
        {
            var walker = new TypeWalker();

            walker.Visit(root);
            return(walker.AllTypes.Count());
        }
Ejemplo n.º 2
0
        private static IEnumerable <TypeDeclarationSyntax> ListDocumentClassesAndStructs(CompilationUnitSyntax root)
        {
            var walker = new TypeWalker();

            walker.Visit(root);
            return(walker.ClassesAndStructs);
        }