本文整理汇总了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);
}
示例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());
}
示例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));
}
示例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));
}