public ListenerExtender(GherkinDialect gherkinDialect, IGherkinListener gherkinListener, GherkinBuffer buffer) { this.gherkinDialect = gherkinDialect; this.gherkinListener = gherkinListener; this.GherkinBuffer = buffer; gherkinListener.Init(buffer, IsIncremental); }
private void RegisterError(IGherkinListener gherkinListener, ScanningErrorException scanningErrorException, Exception originalException) { var position = scanningErrorException.GetPosition(buffer); gherkinListener.Error( scanningErrorException.Message, position ?? buffer.EndPosition, originalException); }
public void Scan(IGherkinListener listener) { ListenerExtender listenerExtender = new ListenerExtender(gherkinDialect, listener, buffer); DoScan(listenerExtender, buffer.LineOffset, 0); }
public ListenerExtender(I18n languageService, IGherkinListener gherkinListener, GherkinBuffer buffer) { this.languageService = languageService; this.gherkinListener = gherkinListener; this.GherkinBuffer = buffer; gherkinListener.Init(buffer, IsIncremental); }
public void Scan(IGherkinListener listener) { ListenerExtender listenerExtender = new ListenerExtender(languageService, listener, buffer); DoScan(listenerExtender, buffer.LineOffset, 0); }