public virtual void Feature(string keyword, string name, string description, GherkinBufferSpan headerSpan, GherkinBufferSpan descriptionSpan) { CurrentFileBlockBuilder.SetMainData(typeof(IHeaderBlock), headerSpan.StartPosition.Line, keyword, name); ColorizeKeywordLine(keyword, headerSpan, classifications.FeatureTitle); ColorizeSpan(descriptionSpan, classifications.Description); }
private void ProcessScenario(string keyword, string name, GherkinBufferSpan headerSpan, GherkinBufferSpan descriptionSpan, Type blockType) { EnsureNewScenario(headerSpan.StartPosition.Line); CurrentFileBlockBuilder.SetMainData(blockType, headerSpan.StartPosition.Line, keyword, name); ColorizeKeywordLine(keyword, headerSpan, classifications.ScenarioTitle); ColorizeSpan(descriptionSpan, classifications.Description); }
public virtual void Background(string keyword, string name, string description, GherkinBufferSpan headerSpan, GherkinBufferSpan descriptionSpan) { NewBlock(headerSpan.StartPosition.Line); CurrentFileBlockBuilder.SetMainData(typeof(IBackgroundBlock), headerSpan.StartPosition.Line, keyword, name); currentStep = null; RegisterKeyword(keyword, headerSpan); ColorizeSpan(descriptionSpan, classifications.Description); }
public IGherkinFileScope GetResult() { if (currentFileBlockBuilder != null) { if (!CurrentFileBlockBuilder.IsComplete) { CurrentFileBlockBuilder.SetAsInvalidBlock(); } CloseBlock(textSnapshot.LineCount); } return(gherkinFileScope); }