当前位置: 首页>>代码示例>>C#>>正文


C# Boo.Insert方法代码示例

本文整理汇总了C#中Boo.Insert方法的典型用法代码示例。如果您正苦于以下问题:C# Boo.Insert方法的具体用法?C# Boo.Insert怎么用?C# Boo.Insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Boo的用法示例。


在下文中一共展示了Boo.Insert方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CustomizeCompiler

        protected override void CustomizeCompiler(Boo.Lang.Compiler.BooCompiler compiler, Boo.Lang.Compiler.CompilerPipeline pipeline, string[] urls)
        {
            compiler.Parameters.Ducky = true;

            List<Assembly> asmss = new List<Assembly>();
            if (RefAllLoadedAssemblies)
            {
                asmss.AddRange(AppDomain.CurrentDomain.GetAssemblies());
            }
            if (ReferencedAssemblies != null) asmss.AddRange(ReferencedAssemblies);

            foreach (Assembly asm in asmss)
            {
                try
                {
                    string loc = asm.Location;
                    if (!compiler.Parameters.References.Contains(asm)) compiler.Parameters.References.Add(asm);
                }
                catch (Exception) { log.Debug("Error adding assembly dependency: {0}", asm.FullName); }
            }

            pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof(ScriptDSLBase), "Prepare", Namespaces));
            var st2 = new AutoReferenceFilesCompilerStep(_baseDir + "\\include");
            pipeline.Insert(2, st2);
        }
开发者ID:lafar6502,项目名称:cogmon,代码行数:25,代码来源:ScriptDSLEngine.cs

示例2: CustomizeCompiler

        protected override void CustomizeCompiler(Boo.Lang.Compiler.BooCompiler compiler, Boo.Lang.Compiler.CompilerPipeline pipeline, string[] urls)
        {
            compiler.Parameters.Ducky = true;

            var customStep = new AnonymousBaseClassCompilerStep(typeof(ArghSettings), "Build", "Argh");

            pipeline.Insert(1, customStep);
            pipeline.Insert(2, new UseSymbolsStep());

            pipeline.InsertBefore(typeof(ProcessMethodBodiesWithDuckTyping), new CapitalisationCompilerStep());
            pipeline.InsertBefore(typeof(ProcessMethodBodiesWithDuckTyping), new UnderscorNamingConventionsToPascalCaseCompilerStep());

            compiler.Parameters.Pipeline.Replace(typeof(ProcessMethodBodiesWithDuckTyping), new UnknownHashLiteralKeyToStringLiteral());
        }
开发者ID:modulexcite,项目名称:Argh,代码行数:14,代码来源:ArghSettingsDslEngine.cs

示例3: CustomizeCompiler

        protected override void CustomizeCompiler(Boo.Lang.Compiler.BooCompiler compiler, Boo.Lang.Compiler.CompilerPipeline pipeline, string[] urls)
        {
            compiler.Parameters.Ducky = true;

            pipeline.Insert(1, new ImplicitBaseClassCompilerStep(
                _baseType, "Prepare", _namespaces));
        }
开发者ID:alasdairhurst,项目名称:nginn,代码行数:7,代码来源:NGinnDslEngine.cs

示例4: CustomizeCompiler

        protected override void CustomizeCompiler(Boo.Lang.Compiler.BooCompiler compiler, Boo.Lang.Compiler.CompilerPipeline pipeline, string[] urls)
        {
            Logger log = LogManager.GetCurrentClassLogger();
            compiler.Parameters.Ducky = true;
            compiler.Parameters.Debug = true;

            

            pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof(ProcessDefDSLBase), "Prepare", _namespaces));
        }
开发者ID:yonglehou,项目名称:NGinnBPM,代码行数:10,代码来源:PackageDSLEngine.cs


注:本文中的Boo.Insert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。