Example #1
0
        protected override ParseProjectContent CreateProjectContent()
        {
            if (BooCompilerPC == null)
            {
                ReferenceProjectItem booCompilerItem = new ReferenceProjectItem(this, typeof(Boo.Lang.Compiler.AbstractAstAttribute).Assembly.Location);
                BooCompilerPC = ParserService.GetProjectContentForReference(booCompilerItem);
            }
            if (BooUsefulPC == null)
            {
                ReferenceProjectItem booUsefulItem = new ReferenceProjectItem(this, typeof(Boo.Lang.Useful.Attributes.SingletonAttribute).Assembly.Location);
                BooUsefulPC = ParserService.GetRegistryForReference(booUsefulItem).GetProjectContentForReference("Boo.Lang.Useful", booUsefulItem.Include);
            }
            ParseProjectContent  pc         = base.CreateProjectContent();
            ReferenceProjectItem systemItem = new ReferenceProjectItem(this, "System");

            pc.AddReferencedContent(ParserService.GetProjectContentForReference(systemItem));
            ReferenceProjectItem booLangItem = new ReferenceProjectItem(this, typeof(Boo.Lang.Builtins).Assembly.Location);

            pc.AddReferencedContent(ParserService.GetProjectContentForReference(booLangItem));
            ReferenceProjectItem booExtensionsItem = new ReferenceProjectItem(this, typeof(Boo.Lang.Extensions.PropertyAttribute).Assembly.Location);

            pc.AddReferencedContent(ParserService.GetProjectContentForReference(booExtensionsItem));
            pc.DefaultImports = new DefaultUsing(pc);
            pc.DefaultImports.Usings.Add("Boo.Lang");
            pc.DefaultImports.Usings.Add("Boo.Lang.Builtins");
            pc.DefaultImports.Usings.Add("Boo.Lang.Extensions");
            return(pc);
        }