public static IEnumerable<GeneratedFile> Generate(Options options)
        {
            if (options == null)
                throw new ArgumentNullException("options");

            var assembly = typeof(BrowsingContext).Assembly;
            var candidates = assembly.GetCandidates();
            var bindings = candidates.GetBindings();
            var types = bindings.ResolveTypes();
            var visitor = new GeneratorVisitor(options);

            foreach (var binding in bindings)
                binding.Accept(visitor);

            visitor.GenerateAuxiliary();
            return visitor.Files;
        }
 public GeneratorVisitor(Options options)
 {
     _files = new List<GeneratedFile>();
     _names = new DependencyTree<String>();
     _options = options;
 }
 public static IEnumerable<GeneratedFile> Generate()
 {
     var options = new Options();
     return Generate(options);
 }