示例#1
0
        public ListenerExtender(GherkinDialect gherkinDialect, IGherkinListener gherkinListener, GherkinBuffer buffer)
        {
            this.gherkinDialect  = gherkinDialect;
            this.gherkinListener = gherkinListener;
            this.GherkinBuffer   = buffer;

            gherkinListener.Init(buffer, IsIncremental);
        }
示例#2
0
        private void RegisterError(IGherkinListener gherkinListener, ScanningErrorException scanningErrorException, Exception originalException)
        {
            var position = scanningErrorException.GetPosition(buffer);

            gherkinListener.Error(
                scanningErrorException.Message,
                position ?? buffer.EndPosition,
                originalException);
        }
示例#3
0
        public void Scan(IGherkinListener listener)
        {
            ListenerExtender listenerExtender = new ListenerExtender(gherkinDialect, listener, buffer);

            DoScan(listenerExtender, buffer.LineOffset, 0);
        }
示例#4
0
        public ListenerExtender(GherkinDialect gherkinDialect, IGherkinListener gherkinListener, GherkinBuffer buffer)
        {
            this.gherkinDialect = gherkinDialect;
            this.gherkinListener = gherkinListener;
            this.GherkinBuffer = buffer;

            gherkinListener.Init(buffer, IsIncremental);
        }
        public ListenerExtender(I18n languageService, IGherkinListener gherkinListener, GherkinBuffer buffer)
        {
            this.languageService = languageService;
            this.gherkinListener = gherkinListener;
            this.GherkinBuffer = buffer;

            gherkinListener.Init(buffer, IsIncremental);
        }
示例#6
0
 public void Scan(IGherkinListener listener)
 {
     ListenerExtender listenerExtender = new ListenerExtender(languageService, listener, buffer);
     DoScan(listenerExtender, buffer.LineOffset, 0);
 }
示例#7
0
        private void RegisterError(IGherkinListener gherkinListener, ScanningErrorException scanningErrorException, Exception originalException)
        {
            var position = scanningErrorException.GetPosition(buffer);

            gherkinListener.Error(
                scanningErrorException.Message, 
                position ?? buffer.EndPosition, 
                originalException);
        }
示例#8
0
 public void Scan(IGherkinListener listener)
 {
     ListenerExtender listenerExtender = new ListenerExtender(gherkinDialect, listener, buffer);
     DoScan(listenerExtender, buffer.LineOffset, 0);
 }