Package org.apache.groovy.ginq.dsl

# Interface SyntaxErrorReportable

All Known Implementing Classes:
  `GinqAstBuilder`

public interface SyntaxErrorReportable
Supports reporting the syntax error of GINQ

Since:
  4.0.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default void`
  `collectSyntaxError(GinqSyntaxError ginqSyntaxError)`
  Adds the supplied GINQ syntax error to the current source unit.
  `SourceUnit`
  `getSourceUnit()`
  Returns the source unit collecting syntax errors.

- ## Method Details

  - ### getSourceUnit

    SourceUnit getSourceUnit()
    Returns the source unit collecting syntax errors.
    Returns:
      the source unit used for reporting

  - ### collectSyntaxError

    default void collectSyntaxError(GinqSyntaxError ginqSyntaxError)
    Adds the supplied GINQ syntax error to the current source unit.
    Parameters:
      `ginqSyntaxError` - the error to report