private static ReadOnlyCollection <ProjectionAtom> LoadProjections(string atomFolder) { Log.Information("Loading projection atoms from {AtomFolder}", atomFolder); var projectionAtoms = AtomCreator.ProjectionsFromFolder(atomFolder) .ToList(); Log.Information("Loaded {ProjectionCount} projections", projectionAtoms.Count); return(projectionAtoms.AsReadOnly()); }
private IEnumerable <ProjectedAtomRoot> GetProjectionAtoms(GeneratorArguments <CSharpTargetConfig> generatorArguments, CSharpTargetConfig config) { var atoms = AtomCreator.FromFolder(generatorArguments.AtomsFolder, generatorArguments.Defaults) .ToList(); var generator = new ProjectionMemberGenerator(atoms); var projectedAtoms = generator.GetProjections(AtomCreator.ProjectionsFromFolder(generatorArguments.AtomsFolder)); return(atoms.Select(ProjectedAtomRoot.FromAtom) .Concat(projectedAtoms)); }