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));
 }
Example #5
0
 public GherkinBufferSpan(GherkinBufferPosition startPosition, GherkinBufferPosition endPosition)
 {
     StartPosition = startPosition;
     EndPosition   = endPosition;
 }
Example #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);
 }
Example #7
0
 private FilePosition GetFilePosition(GherkinBufferPosition startPosition)
 {
     return new FilePosition(startPosition.Line + 1, startPosition.LinePosition + 1);
 }
Example #8
0
 public ScanningErrorException(string message, GherkinBufferPosition position) : base(message)
 {
     this.position = position;
 }
Example #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);
 }
Example #10
0
 public void EOF(GherkinBufferPosition eofPosition)
 {
     parsedResult = featureBuilder.GetResult();
 }
Example #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);
 }
Example #12
0
 public GherkinBufferSpan(GherkinBufferPosition startPosition, GherkinBufferPosition endPosition)
 {
     StartPosition = startPosition;
     EndPosition = endPosition;
 }
Example #13
0
 public ScanningErrorException(string message, GherkinBufferPosition position) : base(message)
 {
     this.position = position;
 }