public void Step(string keyword, StepKeyword stepKeyword, ScenarioBlock scenarioBlock, string text, GherkinBufferSpan stepSpan) { var position = GetFilePosition(stepSpan.StartPosition); stepBuilder = new StepBuilder(keyword, stepKeyword, text, position, scenarioBlock); tableProcessor = stepBuilder; if (stepProcessor == null) { throw new GherkinSemanticErrorException( "Steps can only be specified for scenarios or scenario outlines.", position); } stepProcessor.ProcessStep(stepBuilder); }
public void ProcessStep(StepBuilder step) { steps.Add(step); }
public void step(string keyword, string text, int line) { stepBuilder = new StepBuilder(keyword, text, new FilePosition(line), i18n); tableProcessor = stepBuilder; stepProcessor.ProcessStep(stepBuilder); }
public void Step(string keyword, StepKeyword stepKeyword, ScenarioBlock scenarioBlock, string text, GherkinBufferSpan stepSpan) { var position = GetFilePosition(stepSpan.StartPosition); stepBuilder = new StepBuilder(keyword, stepKeyword, text, position, scenarioBlock); tableProcessor = stepBuilder; if (stepProcessor == null) throw new GherkinSemanticErrorException( "Steps can only be specified for scenarios or scenario outlines.", position); stepProcessor.ProcessStep(stepBuilder); }