Skip to content

@typedblite/language: Type Aliases

Type Aliases that @typedblite/language exports.

Name Description
Annotation Any one of 12 node types the grammar rule Annotation can produce: AbstractAnnotation, CardAnnotation, CascadeAnnotation, DistinctAnnotation and others.
AnnotationCategory The kind of an annotation: its keyword without the @, which is also its node type’s name without Annotation, lower-cased.
AnnotationKeyword One of the 12 keywords of the grammar rule AnnotationKeyword.
AnnotationSubject Where each annotation may sit: the places TypeDB 3 admits it, as its behavior specification states row by row.
Capability Any node the grammar rule Capability can produce: CapabilityOwns, CapabilityPlays, CapabilityRelates, CapabilitySub, CapabilityValue.
Clause Any node the grammar rule Clause can produce: DefineClause, Pipeline, RedefineClause, UndefineClause.
Comparator One of the 8 keywords of the grammar rule Comparator.
Definition Any node the grammar rule Definition can produce: AttributeDef, EntityDef, FunctionDefinition, RelationDef, StructDef, TypeExtensionDef.
Expression Any node the grammar rule Expression can produce: BinaryExpression, FunctionExpression, LabelExpression, LiteralExpression, NegationExpression, VariableExpression.
FetchEntry Any node the grammar rule FetchEntry can produce: FetchAllAttributes, FetchKeyValue.
FetchValue Any node the grammar rule FetchValue can produce: FetchAttribute, FetchExpression, FetchList, FetchObject, FetchSingle.
FunctionName The value of the grammar rule FunctionName, which is a plain string, not a node.
Kind One of the keywords of the grammar rule Kind: attribute, entity, relation.
LabelKind What a label position expects to name.
LeadStage Any node the grammar rule LeadStage can produce: DeleteStage, GivenStage, InsertStage, MatchStage, PutStage, UpdateStage.
Literal Any one of 9 node types the grammar rule Literal can produce: BooleanLiteral, DateLiteral, DatetimeLiteral, DatetimeTzLiteral and others.
Pattern Any one of 12 node types the grammar rule Pattern can produce: AnonRelationPattern, CallComparisonPattern, ComparisonPattern, DisjunctionPattern and others.
Property Any one of 10 node types the grammar rule Property can produce: HasProperty, IidProperty, IsaProperty, LabelProperty and others.
RedefineChange Any node the grammar rule RedefineChange can produce: RedefineAnnotations, RedefineLabel, RedefineSub, RedefineTrait, RedefineValue.
Redefinition Any node the grammar rule Redefinition can produce: RedefineRoleLabel, RedefineType.
ScopedLabel The value of the grammar rule ScopedLabel, which is a plain string, not a node.
Stage Any one of 12 node types the grammar rule Stage can produce: DeleteStage, DistinctStage, InsertStage, LimitStage and others.
SyncDiagnostic A diagnostic whose message is plain text.
Trait Any node the grammar rule Trait can produce: OwnsTrait, PlaysTrait, RelatesTrait.
TypeDefinition A define definition that declares or re-opens a TYPE — not a schema function or a struct.
TypeQLiteAstType Every node type of the syntax tree by name, which is the shape Langium types its services with.
TypeQLiteKeywordNames Every keyword and punctuation token the grammar uses.
TypeQLiteLabelServices The Langium services, with TypeQLite’s label resolver: what the label-aware providers are constructed with.
TypeQLiteServices Langium’s services for a language, with TypeQLite’s added: its validator and its label resolver.
TypeQLiteTerminalNames The names of the grammar’s terminal rules.
TypeQLiteTokenNames The name of every token of the grammar: its terminal rules and its keywords.
TypeQLiteValidationCodeValue A diagnostic code of a validation rule: one of the values of TypeQLiteValidationCode.
UndefineTarget Any node the grammar rule UndefineTarget can produce: UndefineAnnotation, UndefineOwns, UndefinePlays, UndefineRelates, UndefineSpecialize, UndefineSub, UndefineValue.
Undefinition Any node the grammar rule Undefinition can produce: UndefineFrom, UndefineType.
ValueType A value of the grammar rule ValueType: one of 10 keywords, or a name.
WriteStage Any node the grammar rule WriteStage can produce: DeleteStage, InsertStage, PutStage, UpdateStage.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.