Ejemplo n.º 1
0
        public virtual IProject GetProject(ProjectOptions projectOptions)
        {
            var sourceFileNames = new List<string>();

            var visitor = CompositionService.Resolve<ProjectTreeVisitor>();
            visitor.Visit(this, sourceFileNames);

            return Factory.Project(projectOptions, sourceFileNames);
        }
Ejemplo n.º 2
0
        public virtual IProject With(ProjectOptions projectOptions, IEnumerable <string> sourceFileNames)
        {
            Options = projectOptions;

            var projectImportService = Factory.ProjectImportsService();

            projectImportService.Import(this);

            Add(sourceFileNames);

            Compile();

            return(this);
        }
Ejemplo n.º 3
0
 public virtual IProject Project(ProjectOptions projectOptions, List<string> sourceFileNames)
 {
     return new Project(CompositionService, Configuration, this, FileSystem, ParseService, PipelineService).Load(projectOptions, sourceFileNames);
 }
        public virtual IProjectTree GetProjectTree(ProjectOptions projectOptions)
        {
            var projectTree = CompositionService.Resolve<IProjectTree>().With(Configuration.GetString(Constants.Configuration.ToolsDirectory), projectOptions.ProjectDirectory);

            return projectTree;
        }
Ejemplo n.º 5
0
 protected virtual IProjectTree GetProjectTree([NotNull] ProjectOptions projectOptions) => Factory.ProjectTree(Configuration.GetToolsDirectory(), Configuration.GetProjectDirectory());
Ejemplo n.º 6
0
 public virtual IProject LoadProject(ProjectOptions projectOptions, IEnumerable <string> sourceFiles) => Factory.Project(projectOptions, sourceFiles);