Interface Statement
- All Known Implementing Classes:
AssignmentStatement,ConnectionDeclaration,DefRelationStatement,DefStatement,EnvStatement,ImportStatement,QueryStatement,RelateStatement,SourceDeclaration
public sealed interface Statement
permits EnvStatement, ImportStatement, ConnectionDeclaration, SourceDeclaration, RelateStatement, AssignmentStatement, DefStatement, DefRelationStatement, QueryStatement
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 TypeMethodDescriptionlocation()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.
-