Ejemplo n.º 1
0
 public DataTypeBuilder(IEntityNaming naming,
                        ISyntaxGenerator syntax,
                        IExportableCheck exportable,
                        AttachedMemberCache attachedMembers,
                        ICommentParser commentParser)
     : base(naming, syntax, exportable, attachedMembers)
 {
     _commentParser = commentParser;
 }
Ejemplo n.º 2
0
        public HashSet <DocumentViewModel> BuildExport()
        {
            var attachedMembers = new AttachedMemberCache(_utilities.FindAllTypes());
            var commentParser   = new CommentParser();
            var builder         = new NamespaceBuilder(new EntityNaming(),
                                                       new SyntaxGenerator(new ExportableCheck(commentParser), new EntityNaming()),
                                                       new ExportableCheck(commentParser),
                                                       attachedMembers,
                                                       commentParser);
            var result = new HashSet <DocumentViewModel>(new DocumentViewModelEqualityComparer());

            _rootNamespace.Namespaces.ForEach(ns => builder.Build(ns, result));
            return(result);
        }