public void EOF(GherkinBufferPosition eofPosition)
 {
     //nop;
 }
 public void Error(string message, GherkinBufferPosition errorPosition, Exception exception)
 {
     //TODO
     var lastScenario = gherkinFileEditorInfo.ScenarioEditorInfos.LastOrDefault();
     if (lastScenario != null)
     {
         lastScenario.Errors++;
     }
     else
     {
         gherkinFileEditorInfo.HeaderErrors++;
     }
 }
 protected virtual void InitializeFirstBlock(GherkinBufferPosition startPosition)
 {
     CreateBlock(startPosition.Line);
 }
 public void Error(string message, GherkinBufferPosition errorPosition, Exception exception)
 {
     CurrentFileBlockBuilder.Errors.Add(new ErrorInfo(message, errorPosition.Line, errorPosition.LinePosition, exception));
 }
Exemplo n.º 5
0
 public GherkinBufferSpan(GherkinBufferPosition startPosition, GherkinBufferPosition endPosition)
 {
     StartPosition = startPosition;
     EndPosition   = endPosition;
 }
Exemplo n.º 6
0
 public GherkinBufferSpan(GherkinBuffer buffer, int startLine, int startLinePosition, int endLine, int endLinePosition)
 {
     StartPosition = new GherkinBufferPosition(buffer, startLine, startLinePosition);
     EndPosition   = new GherkinBufferPosition(buffer, endLine, endLinePosition);
 }
Exemplo n.º 7
0
 private FilePosition GetFilePosition(GherkinBufferPosition startPosition)
 {
     return new FilePosition(startPosition.Line + 1, startPosition.LinePosition + 1);
 }
Exemplo n.º 8
0
 public ScanningErrorException(string message, GherkinBufferPosition position) : base(message)
 {
     this.position = position;
 }
Exemplo n.º 9
0
 public void Error(string message, GherkinBufferPosition errorPosition, Exception exception)
 {
     var errorDetail = new ErrorDetail
                           {
                               Message = message,
                               Line = errorPosition.Line + 1,
                               Column = errorPosition.LinePosition + 1
                           };
     errors.Add(errorDetail);
 }
Exemplo n.º 10
0
 public void EOF(GherkinBufferPosition eofPosition)
 {
     parsedResult = featureBuilder.GetResult();
 }
Exemplo n.º 11
0
 public GherkinBufferSpan(GherkinBuffer buffer, int startLine, int startLinePosition, int endLine, int endLinePosition)
 {
     StartPosition = new GherkinBufferPosition(buffer, startLine, startLinePosition);
     EndPosition = new GherkinBufferPosition(buffer, endLine, endLinePosition);
 }
Exemplo n.º 12
0
 public GherkinBufferSpan(GherkinBufferPosition startPosition, GherkinBufferPosition endPosition)
 {
     StartPosition = startPosition;
     EndPosition = endPosition;
 }
Exemplo n.º 13
0
 public ScanningErrorException(string message, GherkinBufferPosition position) : base(message)
 {
     this.position = position;
 }