Build() public method

public Build ( ) : IStep
return IStep
Beispiel #1
0
		protected EngineConfiguration ProcessContent(string content)
		{
			EngineConfiguration conf = CreateParser( content ).Parse();
	
			StepChainBuilder chain = new StepChainBuilder();
			AddSteps(chain);
	
			_context = new Context();
			_context.Error += new ErrorDelegate(OnError);

			chain.Build().Process(_context, conf);
			return conf;
		}
		protected virtual void ExecuteSteps()
		{
			StepChainBuilder chain = new StepChainBuilder();

			AddSemanticStep(chain);
			AddTypeResolverStep(chain);
			AddPruneTypesStep(chain);

			IStep firstStep = chain.Build();

			Context context = new Context();
			context.Error += new ErrorDelegate(OnError);
			firstStep.Process(context, Configuration);
		}