All Known Implementing Classes:
AssignmentStatement, ConnectionDeclaration, DefRelationStatement, DefStatement, EnvStatement, ImportStatement, QueryStatement, RelateStatement, SourceDeclaration

Sealed root interface for every top-level declaration in a .relix script.

The permitted statement kinds map directly to the syntactic forms described in the package overview.

All implementations are records and are therefore immutable. Pattern matching on this interface is exhaustive at compile time.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the source location of the first token of this statement.
  • Method Details

    • location

      SourceLocation location()
      Returns the source location of the first token of this statement.