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

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

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

            pc.AddReferencedContent(AssemblyParserService.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);
        }
Exemple #2
0
        protected override ParseProjectContent CreateProjectContent()
        {
            ParseProjectContent  pc    = base.CreateProjectContent();
            ReferenceProjectItem vbRef = new ReferenceProjectItem(this, "Microsoft.VisualBasic");

            if (vbRef != null)
            {
                pc.AddReferencedContent(AssemblyParserService.GetProjectContentForReference(vbRef));
            }
            MyNamespaceBuilder.BuildNamespace(this, pc);
            return(pc);
        }
Exemple #3
0
        protected override ParseProjectContent CreateProjectContent()
        {
            if (BooCompilerPC == null)
            {
                ReferenceProjectItem booCompilerItem = new ReferenceProjectItem(this, typeof(Boo.Lang.Compiler.AbstractAstAttribute).Assembly.Location);
                BooCompilerPC = AssemblyParserService.GetProjectContentForReference(booCompilerItem);
            }

            ParseProjectContent pc = base.CreateProjectContent();

            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);
        }
Exemple #4
0
        protected override void Initialize()
        {
            isInitialized = true;

            IProjectContent pc = AssemblyParserService.GetProjectContentForReference(item);

            if (pc != null)
            {
                Nodes.Clear();
                foreach (IClass c in pc.Classes)
                {
                    TreeNode node = GetNodeByPath(c.Namespace, true);
                    new ClassNode(item.Project, c).AddTo(node);
                }
            }
        }
Exemple #5
0
        public IReflectionProjectContent GetReflectionProjectContentForReference(ReferenceProjectItem item)
        {
            IProjectContent projectContent = AssemblyParserService.GetProjectContentForReference(item);

            return(new TextTemplatingReflectionProjectContent(projectContent));
        }