protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof(BooConfigReader), "Prepare", "Horn.Core.Dsl")); pipeline.InsertBefore(typeof(ProcessMethodBodiesWithDuckTyping), new RightShiftToMethodCompilerStep()); pipeline.Insert(2, new UnderscorNamingConventionsToPascalCaseCompilerStep()); pipeline.Insert(3, new UseSymbolsStep()); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { int step = 1; pipeline.Insert(step++, new ImplicitBaseClassCompilerStep(typeof (MigrationBase), "Execute", "evo.Core.DSL")); pipeline.Insert(step++, new AutoImportCompilerStep("System", "evo.Core", "evo.Core.DSL")); pipeline.Insert(step++, new UseSymbolsStep()); pipeline.Insert(step++, new AutoReferenceFilesCompilerStep()); }
protected override void CustomizeCompiler( BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep( typeof(QuoteGeneratorRule), "Evaluate", "BooDslExampleApp.QuoteGeneration")); pipeline.Insert(2, new UseSymbolsStep()); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof (BaseDaemonConfigurationDSL), "Prepare", "Puppy.Monitoring.Daemon.DSL")); pipeline.InsertBefore(typeof (ProcessMethodBodiesWithDuckTyping), new UnderscoreNamingConventionsToPascalCaseCompilerStep()); }
public static void ReplaceOptional(CompilerPipeline pipeline, Type optionalPipelineStepType, ICompilerStep step) { int num = pipeline.Find(optionalPipelineStepType); if (num >= 0) { pipeline.RemoveAt(num); pipeline.Insert(num - 1, step); } }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof (BaseOrderActionsDSL), "Prepare", //default namespaces "Rhino.DSL.Tests.SchedulingDSL")); pipeline.InsertBefore(typeof (ProcessMethodBodiesWithDuckTyping), new UnderscoreNamingConventionsToPascalCaseCompilerStep()); }
protected override void CustomizeCompiler( BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep( typeof(ResponseStrategy), "ExecuteRule", "System.Net.Mail")); }
/// <summary> /// Customise the compiler to fit the etl engine /// </summary> protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { compiler.Parameters.References.Add(typeof(EtlDslEngine).Assembly); compiler.Parameters.References.Add(typeof(EtlProcess).Assembly); pipeline.Insert(1, new AutoReferenceFilesCompilerStep()); pipeline.Insert(2, new UseModuleNameAsNamespaceIfMissing()); pipeline.Insert(3, new AutoImportCompilerStep( "Rhino.Etl.Core", "Rhino.Etl.Dsl", "Rhino.Etl.Dsl.Macros")); pipeline.InsertAfter(typeof(MacroAndAttributeExpansion), new CorrelateTypesToModuleName(moduleNameToContainedTypes)); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof (PhantomBase), "Execute", typeof(UtilityFunctions).Namespace)); pipeline.Insert(2, new ExpressionToTargetNameStep()); pipeline.Insert(3, new ExpressionToDependencyNamesStep()); pipeline.Insert(4, new ExpressionToCallTargetNameStep()); pipeline.Insert(5, new UseSymbolsStep()); pipeline.Insert(6, new AutoReferenceFilesCompilerStep()); }
public static CompilerPipeline AdjustBooPipeline(CompilerPipeline pipeline) { pipeline.Insert(0, new PreProcess()); pipeline.Replace(typeof(Parsing), new UnityScript.Steps.Parse()); pipeline.Replace(typeof(IntroduceGlobalNamespaces), new IntroduceUnityGlobalNamespaces()); pipeline.InsertAfter(typeof(PreErrorChecking), new ApplySemantics()); pipeline.InsertAfter(typeof(ApplySemantics), new ApplyDefaultVisibility()); pipeline.InsertBefore(typeof(ExpandDuckTypedExpressions), new ProcessAssignmentToDuckMembers()); pipeline.Replace(typeof(ProcessMethodBodiesWithDuckTyping), new ProcessUnityScriptMethods()); pipeline.InsertAfter(typeof(ProcessUnityScriptMethods), new AutoExplodeVarArgsInvocations()); pipeline.InsertAfter(typeof(ProcessUnityScriptMethods), new ProcessEvalInvocations()); UnityScriptCompilerModule.ReplaceOptional(pipeline, typeof(ExpandDuckTypedExpressions), new ExpandUnityDuckTypedExpressions()); pipeline.InsertBefore(typeof(EmitAssembly), new Lint()); pipeline.InsertBefore(typeof(EmitAssembly), new EnableRawArrayIndexing()); pipeline.InsertAfter(typeof(BindBaseTypes), new CheckBaseTypes()); return pipeline; }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof (BaseScheduler), "Prepare", "Rhino.DSL.Tests.SchedulingDSL")); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { var steps = new List<ICompilerStep>(); steps.Add(new IncludeSupportStep(new PhantomDslEngine(importBuilders) {InIncludeMode = true})); if (!InIncludeMode) { steps.Add(new UnescapeNamesStep()); steps.Add(new ExpressionToTargetNameStep()); steps.Add(new ExpressionToDependencyNamesStep()); steps.Add(new ExpressionToCleanupNameStep()); steps.Add(new ExpressionToCallTargetNameStep()); steps.Add(new AutoReferenceFilesCompilerStep()); steps.Add(new TaskImportStep(importBuilders.ToArray())); steps.Add(new ImplicitBaseClassCompilerStep(typeof (PhantomBase), "Execute", typeof (UtilityFunctions).Namespace)); } steps.Reverse(); foreach (var step in steps) { pipeline.Insert(1, step); } if (!InIncludeMode) pipeline.InsertBefore(typeof (ProcessMethodBodiesWithDuckTyping), new AutoRunAllRunnablesStep()); compiler.Parameters.References.Add(typeof(UtilityFunctions).Assembly); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ConvertMacroCompilerStep()); pipeline.Insert(2, new ConvertReferenceToStringLiteralCompilerStep("template", "parameter")); pipeline.Insert(3, new ImplicitBaseClassCompilerStep(typeof(PoplarTemplateFactory), "Initialize", "Poplar.Dsl")); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { ParameterDeclarationCollection parameters = new ParameterDeclarationCollection(); ParameterDeclaration newParameterDeclaration = new ParameterDeclaration("input", new SimpleTypeReference("System.String")); parameters.Add(newParameterDeclaration); pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof(MyClassWithParams), "Hello", parameters, "System")); }
protected override void AddCompilerSteps(BooCompiler compiler, string filename, CompilerPipeline pipeline) { compiler.Parameters.References.Add(typeof(XmlDocument).Assembly); pipeline.Insert(1, new AutoImportCompilerStep("System.Xml")); }
protected override void AddCompilerSteps(BooCompiler compiler, string filename, CompilerPipeline pipeline) { pipeline.Insert(1, new AutoReferenceFilesCompilerStep(Path.GetDirectoryName(filename))); }
public void Modify(CompilerPipeline pipeline){ pipeline.Insert(0, new CommonDataReferencePipelineModifier()); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { compiler.Parameters.Ducky = true; pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof(Service), "ConfigureService", "DslConfig", "System")); }
protected override void CustomizeCompiler(BooCompiler compiler, CompilerPipeline pipeline, string[] urls) { pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof (DemoDslBase), "Execute")); }