Skip to content

[T] Statement

type Statement =
| ImportStatementNode
| ModelStatementNode
| ScalarStatementNode
| NamespaceStatementNode
| InterfaceStatementNode
| UnionStatementNode
| UsingStatementNode
| EnumStatementNode
| AliasStatementNode
| OperationStatementNode
| DecoratorDeclarationStatementNode
| FunctionDeclarationStatementNode
| AugmentDecoratorStatementNode
| ConstStatementNode
| CallExpressionNode
| EmptyStatementNode
| InvalidStatementNode;

AST node variants representable in a statement list, including declarations and recovery nodes. The union also includes call expressions, but the parser does not accept standalone call statements.