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