@typedblite/language
TypeQLite’s grammar, generated AST, synchronous validation and language services. Start with createTypeQLiteServices.
The package is what the engine parses and checks every statement with, and what the editor’s language server is built from. Parse, then validate:
import { EmptyFileSystem } from 'langium';import { createTypeQLiteServices, validateSync, type TypeQLiteFile } from '@typedblite/language';
const { TypeQLite } = createTypeQLiteServices(EmptyFileSystem);const result = TypeQLite.parser.LangiumParser.parse<TypeQLiteFile>(` define entity person, owns name; attribute name, value string;`);const diagnostics = validateSync(TypeQLite, result.value); // every rule, synchronouslyresult.value is the syntax tree: most of what this page lists is its node types and the is… guards that tell them
apart, which are generated from the grammar. The rest is the services around it. To learn the language itself, read
The TypeQLite language.
Composing the services. createTypeQLiteServices returns them wired together; the generated module and the grammar
are what it composes them from.
| Name | Description |
|---|---|
| TypeQLiteAddedServices | Language-specific services — the seam ADR-002 Decision 7’s middle layer lives in. |
| TypeQLiteServices | Langium’s services for a language, with TypeQLite’s added: its validator and its label resolver. |
| TypeQLiteGeneratedModule | The services Langium generates for TypeQLite: its grammar, its metadata and its parser. createTypeQLiteServices composes it with the hand-written services. |
| TypeQLiteGeneratedSharedModule | The services Langium generates for the whole workspace rather than for one language: the AST reflection. createTypeQLiteServices composes it with the hand-written shared services. |
| TypeQLiteLanguageMetaData | The language’s id (typeqlite), its file extensions (.typeqlite and .tql) and its case sensitivity, as Langium takes them. |
| TypeQLiteModule | The services TypeQLite writes itself, which replace or add to Langium’s defaults: the formatter, semantic tokens, outline, hover, definition, references, completion, rename and code actions, the label resolver, the scope provider and computation, and the validator and registry. |
| TypeQLiteSharedModule | Services shared across languages: here, only what kind of symbol each definition is. |
| createTypeQLiteServices | Creates the TypeQLite language services: Langium’s defaults, the generated modules and the hand-written ones, composed, with the validation checks registered. Start here to parse, validate or serve TypeQLite. |
| TypeQLiteGrammar | The TypeQLite grammar as a Langium Grammar, loaded from its JSON the first time it is asked for. |
Syntax tree
Section titled “Syntax tree”The node types the parser produces, one for each rule of the grammar, with a type guard for each. Generated from the grammar, so each is described by its shape and not by what the construct means.
| Name | Description |
|---|---|
| TypeQLiteAstReflection | Tells Langium which node types the syntax tree has, what properties each has and which are subtypes of which. One instance is shared, as reflection. |
| AbstractAnnotation | An AbstractAnnotation node of the TypeQLite syntax tree: what the grammar rule AbstractAnnotation produces. Its $type is 'AbstractAnnotation'. |
| AnonRelationPattern | An AnonRelationPattern node of the TypeQLite syntax tree: what the grammar rule AnonRelationPattern produces. Its $type is 'AnonRelationPattern'. |
| AttributeDef | An AttributeDef node of the TypeQLite syntax tree: what the grammar rule AttributeDef produces. Its $type is 'AttributeDef'. |
| BinaryExpression | A BinaryExpression node of the TypeQLite syntax tree: what the grammar rule BinaryExpression produces. Its $type is 'BinaryExpression'. |
| BooleanLiteral | A BooleanLiteral node of the TypeQLite syntax tree: what the grammar rule BooleanLiteral produces. Its $type is 'BooleanLiteral'. |
| CallComparisonPattern | A CallComparisonPattern node of the TypeQLite syntax tree: what the grammar rule CallComparisonPattern produces. Its $type is 'CallComparisonPattern'. |
| CapabilityOwns | A CapabilityOwns node of the TypeQLite syntax tree: what the grammar rule CapabilityOwns produces. Its $type is 'CapabilityOwns'. |
| CapabilityPlays | A CapabilityPlays node of the TypeQLite syntax tree: what the grammar rule CapabilityPlays produces. Its $type is 'CapabilityPlays'. |
| CapabilityRelates | A CapabilityRelates node of the TypeQLite syntax tree: what the grammar rule CapabilityRelates produces. Its $type is 'CapabilityRelates'. |
| CapabilitySub | A CapabilitySub node of the TypeQLite syntax tree: what the grammar rule CapabilitySub produces. Its $type is 'CapabilitySub'. |
| CapabilityValue | A CapabilityValue node of the TypeQLite syntax tree: what the grammar rule CapabilityValue produces. Its $type is 'CapabilityValue'. |
| CardAnnotation | A CardAnnotation node of the TypeQLite syntax tree: what the grammar rule CardAnnotation produces. Its $type is 'CardAnnotation'. |
| CascadeAnnotation | A CascadeAnnotation node of the TypeQLite syntax tree: what the grammar rule CascadeAnnotation produces. Its $type is 'CascadeAnnotation'. |
| ComparisonPattern | A ComparisonPattern node of the TypeQLite syntax tree: what the grammar rule ComparisonPattern produces. Its $type is 'ComparisonPattern'. |
| DateLiteral | A DateLiteral node of the TypeQLite syntax tree: what the grammar rule DateLiteral produces. Its $type is 'DateLiteral'. |
| DatetimeLiteral | A DatetimeLiteral node of the TypeQLite syntax tree: what the grammar rule DatetimeLiteral produces. Its $type is 'DatetimeLiteral'. |
| DatetimeTzLiteral | A DatetimeTzLiteral node of the TypeQLite syntax tree: what the grammar rule DatetimeTzLiteral produces. Its $type is 'DatetimeTzLiteral'. |
| DecimalLiteral | A DecimalLiteral node of the TypeQLite syntax tree: what the grammar rule DecimalLiteral produces. Its $type is 'DecimalLiteral'. |
| DefineClause | A DefineClause node of the TypeQLite syntax tree: what the grammar rule DefineClause produces. Its $type is 'DefineClause'. |
| DeleteStage | A DeleteStage node of the TypeQLite syntax tree: what the grammar rule DeleteStage produces. Its $type is 'DeleteStage'. |
| Deletion | A Deletion node of the TypeQLite syntax tree: what the grammar rule Deletion produces. Its $type is 'Deletion'. |
| DisjunctionPattern | A DisjunctionPattern node of the TypeQLite syntax tree: what the grammar rule DisjunctionPattern produces. Its $type is 'DisjunctionPattern'. |
| DistinctAnnotation | A DistinctAnnotation node of the TypeQLite syntax tree: what the grammar rule DistinctAnnotation produces. Its $type is 'DistinctAnnotation'. |
| DistinctStage | A DistinctStage node of the TypeQLite syntax tree: what the grammar rule DistinctStage produces. Its $type is 'DistinctStage'. |
| DocAnnotation | A DocAnnotation node of the TypeQLite syntax tree: what the grammar rule DocAnnotation produces. Its $type is 'DocAnnotation'. |
| DoubleLiteral | A DoubleLiteral node of the TypeQLite syntax tree: what the grammar rule DoubleLiteral produces. Its $type is 'DoubleLiteral'. |
| DurationLiteral | A DurationLiteral node of the TypeQLite syntax tree: what the grammar rule DurationLiteral produces. Its $type is 'DurationLiteral'. |
| EntityDef | An EntityDef node of the TypeQLite syntax tree: what the grammar rule EntityDef produces. Its $type is 'EntityDef'. |
| FetchAllAttributes | A FetchAllAttributes node of the TypeQLite syntax tree: what the grammar rule FetchAllAttributes produces. Its $type is 'FetchAllAttributes'. |
| FetchAttribute | A FetchAttribute node of the TypeQLite syntax tree: what the grammar rule FetchAttribute produces. Its $type is 'FetchAttribute'. |
| FetchExpression | A FetchExpression node of the TypeQLite syntax tree: what the grammar rule FetchExpression produces. Its $type is 'FetchExpression'. |
| FetchKeyValue | A FetchKeyValue node of the TypeQLite syntax tree: what the grammar rule FetchKeyValue produces. Its $type is 'FetchKeyValue'. |
| FetchList | A FetchList node of the TypeQLite syntax tree: what the grammar rule FetchList produces. Its $type is 'FetchList'. |
| FetchObject | A FetchObject node of the TypeQLite syntax tree: what the grammar rule FetchObject produces. Its $type is 'FetchObject'. |
| FetchSingle | A FetchSingle node of the TypeQLite syntax tree: what the grammar rule FetchSingle produces. Its $type is 'FetchSingle'. |
| FetchStage | A FetchStage node of the TypeQLite syntax tree: what the grammar rule FetchStage produces. Its $type is 'FetchStage'. |
| FunctionBody | A FunctionBody node of the TypeQLite syntax tree: what the grammar rule FunctionBody produces. Its $type is 'FunctionBody'. |
| FunctionDefinition | A FunctionDefinition node of the TypeQLite syntax tree: what the grammar rule FunctionDefinition produces. Its $type is 'FunctionDefinition'. |
| FunctionExpression | A FunctionExpression node of the TypeQLite syntax tree: what the grammar rule FunctionExpression produces. Its $type is 'FunctionExpression'. |
| FunctionOutput | A FunctionOutput node of the TypeQLite syntax tree: what the grammar rule FunctionOutput produces. Its $type is 'FunctionOutput'. |
| FunctionOutputType | A FunctionOutputType node of the TypeQLite syntax tree: what the grammar rule FunctionOutputType produces. Its $type is 'FunctionOutputType'. |
| FunctionParameter | A FunctionParameter node of the TypeQLite syntax tree: what the grammar rule FunctionParameter produces. Its $type is 'FunctionParameter'. |
| GivenDeclaration | A GivenDeclaration node of the TypeQLite syntax tree: what the grammar rule GivenDeclaration produces. Its $type is 'GivenDeclaration'. |
| GivenStage | A GivenStage node of the TypeQLite syntax tree: what the grammar rule GivenStage produces. Its $type is 'GivenStage'. |
| HasProperty | A HasProperty node of the TypeQLite syntax tree: what the grammar rule HasProperty produces. Its $type is 'HasProperty'. |
| IidProperty | An IidProperty node of the TypeQLite syntax tree: what the grammar rule IidProperty produces. Its $type is 'IidProperty'. |
| IndependentAnnotation | An IndependentAnnotation node of the TypeQLite syntax tree: what the grammar rule IndependentAnnotation produces. Its $type is 'IndependentAnnotation'. |
| InsertStage | An InsertStage node of the TypeQLite syntax tree: what the grammar rule InsertStage produces. Its $type is 'InsertStage'. |
| IntLiteral | An IntLiteral node of the TypeQLite syntax tree: what the grammar rule IntLiteral produces. Its $type is 'IntLiteral'. |
| IsaProperty | An IsaProperty node of the TypeQLite syntax tree: what the grammar rule IsaProperty produces. Its $type is 'IsaProperty'. |
| IsPattern | An IsPattern node of the TypeQLite syntax tree: what the grammar rule IsPattern produces. Its $type is 'IsPattern'. |
| KeyAnnotation | A KeyAnnotation node of the TypeQLite syntax tree: what the grammar rule KeyAnnotation produces. Its $type is 'KeyAnnotation'. |
| KindLabelPattern | A KindLabelPattern node of the TypeQLite syntax tree: what the grammar rule KindLabelPattern produces. Its $type is 'KindLabelPattern'. |
| KindPattern | A KindPattern node of the TypeQLite syntax tree: what the grammar rule KindPattern produces. Its $type is 'KindPattern'. |
| LabelExpression | A LabelExpression node of the TypeQLite syntax tree: what the grammar rule LabelExpression produces. Its $type is 'LabelExpression'. |
| LabelProperty | A LabelProperty node of the TypeQLite syntax tree: what the grammar rule LabelProperty produces. Its $type is 'LabelProperty'. |
| LetPattern | A LetPattern node of the TypeQLite syntax tree: what the grammar rule LetPattern produces. Its $type is 'LetPattern'. |
| LimitStage | A LimitStage node of the TypeQLite syntax tree: what the grammar rule LimitStage produces. Its $type is 'LimitStage'. |
| LinksProperty | A LinksProperty node of the TypeQLite syntax tree: what the grammar rule LinksProperty produces. Its $type is 'LinksProperty'. |
| LiteralExpression | A LiteralExpression node of the TypeQLite syntax tree: what the grammar rule LiteralExpression produces. Its $type is 'LiteralExpression'. |
| MatchStage | A MatchStage node of the TypeQLite syntax tree: what the grammar rule MatchStage produces. Its $type is 'MatchStage'. |
| MetaAnnotation | A MetaAnnotation node of the TypeQLite syntax tree: what the grammar rule MetaAnnotation produces. Its $type is 'MetaAnnotation'. |
| NegationExpression | A NegationExpression node of the TypeQLite syntax tree: what the grammar rule NegationExpression produces. Its $type is 'NegationExpression'. |
| NegationPattern | A NegationPattern node of the TypeQLite syntax tree: what the grammar rule NegationPattern produces. Its $type is 'NegationPattern'. |
| OffsetStage | An OffsetStage node of the TypeQLite syntax tree: what the grammar rule OffsetStage produces. Its $type is 'OffsetStage'. |
| OptionalPattern | An OptionalPattern node of the TypeQLite syntax tree: what the grammar rule OptionalPattern produces. Its $type is 'OptionalPattern'. |
| OwnsProperty | An OwnsProperty node of the TypeQLite syntax tree: what the grammar rule OwnsProperty produces. Its $type is 'OwnsProperty'. |
| OwnsTrait | An OwnsTrait node of the TypeQLite syntax tree: what the grammar rule OwnsTrait produces. Its $type is 'OwnsTrait'. |
| PatternBlock | A PatternBlock node of the TypeQLite syntax tree: what the grammar rule PatternBlock produces. Its $type is 'PatternBlock'. |
| Pipeline | A Pipeline node of the TypeQLite syntax tree: what the grammar rule Pipeline produces. Its $type is 'Pipeline'. |
| PlaysProperty | A PlaysProperty node of the TypeQLite syntax tree: what the grammar rule PlaysProperty produces. Its $type is 'PlaysProperty'. |
| PlaysTrait | A PlaysTrait node of the TypeQLite syntax tree: what the grammar rule PlaysTrait produces. Its $type is 'PlaysTrait'. |
| PutStage | A PutStage node of the TypeQLite syntax tree: what the grammar rule PutStage produces. Its $type is 'PutStage'. |
| RangeAnnotation | A RangeAnnotation node of the TypeQLite syntax tree: what the grammar rule RangeAnnotation produces. Its $type is 'RangeAnnotation'. |
| RedefineAnnotations | A RedefineAnnotations node of the TypeQLite syntax tree: what the grammar rule RedefineAnnotations produces. Its $type is 'RedefineAnnotations'. |
| RedefineClause | A RedefineClause node of the TypeQLite syntax tree: what the grammar rule RedefineClause produces. Its $type is 'RedefineClause'. |
| RedefineLabel | A RedefineLabel node of the TypeQLite syntax tree: what the grammar rule RedefineLabel produces. Its $type is 'RedefineLabel'. |
| RedefineRoleLabel | A RedefineRoleLabel node of the TypeQLite syntax tree: what the grammar rule RedefineRoleLabel produces. Its $type is 'RedefineRoleLabel'. |
| RedefineSub | A RedefineSub node of the TypeQLite syntax tree: what the grammar rule RedefineSub produces. Its $type is 'RedefineSub'. |
| RedefineTrait | A RedefineTrait node of the TypeQLite syntax tree: what the grammar rule RedefineTrait produces. Its $type is 'RedefineTrait'. |
| RedefineType | A RedefineType node of the TypeQLite syntax tree: what the grammar rule RedefineType produces. Its $type is 'RedefineType'. |
| RedefineValue | A RedefineValue node of the TypeQLite syntax tree: what the grammar rule RedefineValue produces. Its $type is 'RedefineValue'. |
| ReduceStage | A ReduceStage node of the TypeQLite syntax tree: what the grammar rule ReduceStage produces. Its $type is 'ReduceStage'. |
| Reduction | A Reduction node of the TypeQLite syntax tree: what the grammar rule Reduction produces. Its $type is 'Reduction'. |
| RegexAnnotation | A RegexAnnotation node of the TypeQLite syntax tree: what the grammar rule RegexAnnotation produces. Its $type is 'RegexAnnotation'. |
| RelatesProperty | A RelatesProperty node of the TypeQLite syntax tree: what the grammar rule RelatesProperty produces. Its $type is 'RelatesProperty'. |
| RelatesTrait | A RelatesTrait node of the TypeQLite syntax tree: what the grammar rule RelatesTrait produces. Its $type is 'RelatesTrait'. |
| RelationDef | A RelationDef node of the TypeQLite syntax tree: what the grammar rule RelationDef produces. Its $type is 'RelationDef'. |
| RequireStage | A RequireStage node of the TypeQLite syntax tree: what the grammar rule RequireStage produces. Its $type is 'RequireStage'. |
| ReturnReduction | A ReturnReduction node of the TypeQLite syntax tree: what the grammar rule ReturnReduction produces. Its $type is 'ReturnReduction'. |
| ReturnStage | A ReturnStage node of the TypeQLite syntax tree: what the grammar rule ReturnStage produces. Its $type is 'ReturnStage'. |
| RoleName | A RoleName node of the TypeQLite syntax tree: what the grammar rule RoleName produces. Its $type is 'RoleName'. |
| RolePlayer | A RolePlayer node of the TypeQLite syntax tree: what the grammar rule RolePlayer produces. Its $type is 'RolePlayer'. |
| RolePlayers | A RolePlayers node of the TypeQLite syntax tree: what the grammar rule RolePlayers produces. Its $type is 'RolePlayers'. |
| RoleRef | A RoleRef node of the TypeQLite syntax tree: what the grammar rule RoleRef produces. Its $type is 'RoleRef'. |
| SelectStage | A SelectStage node of the TypeQLite syntax tree: what the grammar rule SelectStage produces. Its $type is 'SelectStage'. |
| SortKey | A SortKey node of the TypeQLite syntax tree: what the grammar rule SortKey produces. Its $type is 'SortKey'. |
| SortStage | A SortStage node of the TypeQLite syntax tree: what the grammar rule SortStage produces. Its $type is 'SortStage'. |
| StringLiteral | A StringLiteral node of the TypeQLite syntax tree: what the grammar rule StringLiteral produces. Its $type is 'StringLiteral'. |
| StructDef | A StructDef node of the TypeQLite syntax tree: what the grammar rule StructDef produces. Its $type is 'StructDef'. |
| StructField | A StructField node of the TypeQLite syntax tree: what the grammar rule StructField produces. Its $type is 'StructField'. |
| SubProperty | A SubProperty node of the TypeQLite syntax tree: what the grammar rule SubProperty produces. Its $type is 'SubProperty'. |
| ThingPattern | A ThingPattern node of the TypeQLite syntax tree: what the grammar rule ThingPattern produces. Its $type is 'ThingPattern'. |
| TypeExtensionDef | A TypeExtensionDef node of the TypeQLite syntax tree: what the grammar rule TypeExtensionDef produces. Its $type is 'TypeExtensionDef'. |
| TypePattern | A TypePattern node of the TypeQLite syntax tree: what the grammar rule TypePattern produces. Its $type is 'TypePattern'. |
| TypeQLiteFile | A TypeQLiteFile node of the TypeQLite syntax tree: what the grammar rule TypeQLiteFile produces. Its $type is 'TypeQLiteFile'. |
| UndefineAnnotation | An UndefineAnnotation node of the TypeQLite syntax tree: what the grammar rule UndefineAnnotation produces. Its $type is 'UndefineAnnotation'. |
| UndefineClause | An UndefineClause node of the TypeQLite syntax tree: what the grammar rule UndefineClause produces. Its $type is 'UndefineClause'. |
| UndefineFrom | An UndefineFrom node of the TypeQLite syntax tree: what the grammar rule UndefineFrom produces. Its $type is 'UndefineFrom'. |
| UndefineOwns | An UndefineOwns node of the TypeQLite syntax tree: what the grammar rule UndefineOwns produces. Its $type is 'UndefineOwns'. |
| UndefinePlays | An UndefinePlays node of the TypeQLite syntax tree: what the grammar rule UndefinePlays produces. Its $type is 'UndefinePlays'. |
| UndefineRelates | An UndefineRelates node of the TypeQLite syntax tree: what the grammar rule UndefineRelates produces. Its $type is 'UndefineRelates'. |
| UndefineSpecialize | An UndefineSpecialize node of the TypeQLite syntax tree: what the grammar rule UndefineSpecialize produces. Its $type is 'UndefineSpecialize'. |
| UndefineSub | An UndefineSub node of the TypeQLite syntax tree: what the grammar rule UndefineSub produces. Its $type is 'UndefineSub'. |
| UndefineType | An UndefineType node of the TypeQLite syntax tree: what the grammar rule UndefineType produces. Its $type is 'UndefineType'. |
| UndefineValue | An UndefineValue node of the TypeQLite syntax tree: what the grammar rule UndefineValue produces. Its $type is 'UndefineValue'. |
| UniqueAnnotation | An UniqueAnnotation node of the TypeQLite syntax tree: what the grammar rule UniqueAnnotation produces. Its $type is 'UniqueAnnotation'. |
| UpdateStage | An UpdateStage node of the TypeQLite syntax tree: what the grammar rule UpdateStage produces. Its $type is 'UpdateStage'. |
| ValueProperty | A ValueProperty node of the TypeQLite syntax tree: what the grammar rule ValueProperty produces. Its $type is 'ValueProperty'. |
| ValuesAnnotation | A ValuesAnnotation node of the TypeQLite syntax tree: what the grammar rule ValuesAnnotation produces. Its $type is 'ValuesAnnotation'. |
| VariableExpression | A VariableExpression node of the TypeQLite syntax tree: what the grammar rule VariableExpression produces. Its $type is 'VariableExpression'. |
| Annotation | Any one of 12 node types the grammar rule Annotation can produce: AbstractAnnotation, CardAnnotation, CascadeAnnotation, DistinctAnnotation and others. |
| AnnotationKeyword | One of the 12 keywords of the grammar rule AnnotationKeyword. |
| 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. |
| 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. |
| 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. |
| TypeQLiteTerminalNames | The names of the grammar’s terminal rules. |
| TypeQLiteTokenNames | The name of every token of the grammar: its terminal rules and its keywords. |
| 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. |
| AbstractAnnotation | The $type name of AbstractAnnotation nodes: AbstractAnnotation.$type is 'AbstractAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| Annotation | The $type name of Annotation nodes: Annotation.$type is 'Annotation', the name reflection.isInstance and a switch on node.$type use. |
| AnonRelationPattern | The $type name of AnonRelationPattern nodes: AnonRelationPattern.$type is 'AnonRelationPattern', the name reflection.isInstance and a switch on node.$type use. |
| AttributeDef | The $type name of AttributeDef nodes: AttributeDef.$type is 'AttributeDef', the name reflection.isInstance and a switch on node.$type use. |
| BinaryExpression | The $type name of BinaryExpression nodes: BinaryExpression.$type is 'BinaryExpression', the name reflection.isInstance and a switch on node.$type use. |
| BooleanLiteral | The $type name of BooleanLiteral nodes: BooleanLiteral.$type is 'BooleanLiteral', the name reflection.isInstance and a switch on node.$type use. |
| CallComparisonPattern | The $type name of CallComparisonPattern nodes: CallComparisonPattern.$type is 'CallComparisonPattern', the name reflection.isInstance and a switch on node.$type use. |
| Capability | The $type name of Capability nodes: Capability.$type is 'Capability', the name reflection.isInstance and a switch on node.$type use. |
| CapabilityOwns | The $type name of CapabilityOwns nodes: CapabilityOwns.$type is 'CapabilityOwns', the name reflection.isInstance and a switch on node.$type use. |
| CapabilityPlays | The $type name of CapabilityPlays nodes: CapabilityPlays.$type is 'CapabilityPlays', the name reflection.isInstance and a switch on node.$type use. |
| CapabilityRelates | The $type name of CapabilityRelates nodes: CapabilityRelates.$type is 'CapabilityRelates', the name reflection.isInstance and a switch on node.$type use. |
| CapabilitySub | The $type name of CapabilitySub nodes: CapabilitySub.$type is 'CapabilitySub', the name reflection.isInstance and a switch on node.$type use. |
| CapabilityValue | The $type name of CapabilityValue nodes: CapabilityValue.$type is 'CapabilityValue', the name reflection.isInstance and a switch on node.$type use. |
| CardAnnotation | The $type name of CardAnnotation nodes: CardAnnotation.$type is 'CardAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| CascadeAnnotation | The $type name of CascadeAnnotation nodes: CascadeAnnotation.$type is 'CascadeAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| Clause | The $type name of Clause nodes: Clause.$type is 'Clause', the name reflection.isInstance and a switch on node.$type use. |
| ComparisonPattern | The $type name of ComparisonPattern nodes: ComparisonPattern.$type is 'ComparisonPattern', the name reflection.isInstance and a switch on node.$type use. |
| DateLiteral | The $type name of DateLiteral nodes: DateLiteral.$type is 'DateLiteral', the name reflection.isInstance and a switch on node.$type use. |
| DatetimeLiteral | The $type name of DatetimeLiteral nodes: DatetimeLiteral.$type is 'DatetimeLiteral', the name reflection.isInstance and a switch on node.$type use. |
| DatetimeTzLiteral | The $type name of DatetimeTzLiteral nodes: DatetimeTzLiteral.$type is 'DatetimeTzLiteral', the name reflection.isInstance and a switch on node.$type use. |
| DecimalLiteral | The $type name of DecimalLiteral nodes: DecimalLiteral.$type is 'DecimalLiteral', the name reflection.isInstance and a switch on node.$type use. |
| DefineClause | The $type name of DefineClause nodes: DefineClause.$type is 'DefineClause', the name reflection.isInstance and a switch on node.$type use. |
| Definition | The $type name of Definition nodes: Definition.$type is 'Definition', the name reflection.isInstance and a switch on node.$type use. |
| DeleteStage | The $type name of DeleteStage nodes: DeleteStage.$type is 'DeleteStage', the name reflection.isInstance and a switch on node.$type use. |
| Deletion | The $type name of Deletion nodes: Deletion.$type is 'Deletion', the name reflection.isInstance and a switch on node.$type use. |
| DisjunctionPattern | The $type name of DisjunctionPattern nodes: DisjunctionPattern.$type is 'DisjunctionPattern', the name reflection.isInstance and a switch on node.$type use. |
| DistinctAnnotation | The $type name of DistinctAnnotation nodes: DistinctAnnotation.$type is 'DistinctAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| DistinctStage | The $type name of DistinctStage nodes: DistinctStage.$type is 'DistinctStage', the name reflection.isInstance and a switch on node.$type use. |
| DocAnnotation | The $type name of DocAnnotation nodes: DocAnnotation.$type is 'DocAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| DoubleLiteral | The $type name of DoubleLiteral nodes: DoubleLiteral.$type is 'DoubleLiteral', the name reflection.isInstance and a switch on node.$type use. |
| DurationLiteral | The $type name of DurationLiteral nodes: DurationLiteral.$type is 'DurationLiteral', the name reflection.isInstance and a switch on node.$type use. |
| EntityDef | The $type name of EntityDef nodes: EntityDef.$type is 'EntityDef', the name reflection.isInstance and a switch on node.$type use. |
| Expression | The $type name of Expression nodes: Expression.$type is 'Expression', the name reflection.isInstance and a switch on node.$type use. |
| FetchAllAttributes | The $type name of FetchAllAttributes nodes: FetchAllAttributes.$type is 'FetchAllAttributes', the name reflection.isInstance and a switch on node.$type use. |
| FetchAttribute | The $type name of FetchAttribute nodes: FetchAttribute.$type is 'FetchAttribute', the name reflection.isInstance and a switch on node.$type use. |
| FetchEntry | The $type name of FetchEntry nodes: FetchEntry.$type is 'FetchEntry', the name reflection.isInstance and a switch on node.$type use. |
| FetchExpression | The $type name of FetchExpression nodes: FetchExpression.$type is 'FetchExpression', the name reflection.isInstance and a switch on node.$type use. |
| FetchKeyValue | The $type name of FetchKeyValue nodes: FetchKeyValue.$type is 'FetchKeyValue', the name reflection.isInstance and a switch on node.$type use. |
| FetchList | The $type name of FetchList nodes: FetchList.$type is 'FetchList', the name reflection.isInstance and a switch on node.$type use. |
| FetchObject | The $type name of FetchObject nodes: FetchObject.$type is 'FetchObject', the name reflection.isInstance and a switch on node.$type use. |
| FetchSingle | The $type name of FetchSingle nodes: FetchSingle.$type is 'FetchSingle', the name reflection.isInstance and a switch on node.$type use. |
| FetchStage | The $type name of FetchStage nodes: FetchStage.$type is 'FetchStage', the name reflection.isInstance and a switch on node.$type use. |
| FetchValue | The $type name of FetchValue nodes: FetchValue.$type is 'FetchValue', the name reflection.isInstance and a switch on node.$type use. |
| FunctionBody | The $type name of FunctionBody nodes: FunctionBody.$type is 'FunctionBody', the name reflection.isInstance and a switch on node.$type use. |
| FunctionDefinition | The $type name of FunctionDefinition nodes: FunctionDefinition.$type is 'FunctionDefinition', the name reflection.isInstance and a switch on node.$type use. |
| FunctionExpression | The $type name of FunctionExpression nodes: FunctionExpression.$type is 'FunctionExpression', the name reflection.isInstance and a switch on node.$type use. |
| FunctionOutput | The $type name of FunctionOutput nodes: FunctionOutput.$type is 'FunctionOutput', the name reflection.isInstance and a switch on node.$type use. |
| FunctionOutputType | The $type name of FunctionOutputType nodes: FunctionOutputType.$type is 'FunctionOutputType', the name reflection.isInstance and a switch on node.$type use. |
| FunctionParameter | The $type name of FunctionParameter nodes: FunctionParameter.$type is 'FunctionParameter', the name reflection.isInstance and a switch on node.$type use. |
| GivenDeclaration | The $type name of GivenDeclaration nodes: GivenDeclaration.$type is 'GivenDeclaration', the name reflection.isInstance and a switch on node.$type use. |
| GivenStage | The $type name of GivenStage nodes: GivenStage.$type is 'GivenStage', the name reflection.isInstance and a switch on node.$type use. |
| HasProperty | The $type name of HasProperty nodes: HasProperty.$type is 'HasProperty', the name reflection.isInstance and a switch on node.$type use. |
| IidProperty | The $type name of IidProperty nodes: IidProperty.$type is 'IidProperty', the name reflection.isInstance and a switch on node.$type use. |
| IndependentAnnotation | The $type name of IndependentAnnotation nodes: IndependentAnnotation.$type is 'IndependentAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| InsertStage | The $type name of InsertStage nodes: InsertStage.$type is 'InsertStage', the name reflection.isInstance and a switch on node.$type use. |
| IntLiteral | The $type name of IntLiteral nodes: IntLiteral.$type is 'IntLiteral', the name reflection.isInstance and a switch on node.$type use. |
| IsaProperty | The $type name of IsaProperty nodes: IsaProperty.$type is 'IsaProperty', the name reflection.isInstance and a switch on node.$type use. |
| IsPattern | The $type name of IsPattern nodes: IsPattern.$type is 'IsPattern', the name reflection.isInstance and a switch on node.$type use. |
| KeyAnnotation | The $type name of KeyAnnotation nodes: KeyAnnotation.$type is 'KeyAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| KindLabelPattern | The $type name of KindLabelPattern nodes: KindLabelPattern.$type is 'KindLabelPattern', the name reflection.isInstance and a switch on node.$type use. |
| KindPattern | The $type name of KindPattern nodes: KindPattern.$type is 'KindPattern', the name reflection.isInstance and a switch on node.$type use. |
| LabelExpression | The $type name of LabelExpression nodes: LabelExpression.$type is 'LabelExpression', the name reflection.isInstance and a switch on node.$type use. |
| LabelProperty | The $type name of LabelProperty nodes: LabelProperty.$type is 'LabelProperty', the name reflection.isInstance and a switch on node.$type use. |
| LeadStage | The $type name of LeadStage nodes: LeadStage.$type is 'LeadStage', the name reflection.isInstance and a switch on node.$type use. |
| LetPattern | The $type name of LetPattern nodes: LetPattern.$type is 'LetPattern', the name reflection.isInstance and a switch on node.$type use. |
| LimitStage | The $type name of LimitStage nodes: LimitStage.$type is 'LimitStage', the name reflection.isInstance and a switch on node.$type use. |
| LinksProperty | The $type name of LinksProperty nodes: LinksProperty.$type is 'LinksProperty', the name reflection.isInstance and a switch on node.$type use. |
| Literal | The $type name of Literal nodes: Literal.$type is 'Literal', the name reflection.isInstance and a switch on node.$type use. |
| LiteralExpression | The $type name of LiteralExpression nodes: LiteralExpression.$type is 'LiteralExpression', the name reflection.isInstance and a switch on node.$type use. |
| MatchStage | The $type name of MatchStage nodes: MatchStage.$type is 'MatchStage', the name reflection.isInstance and a switch on node.$type use. |
| MetaAnnotation | The $type name of MetaAnnotation nodes: MetaAnnotation.$type is 'MetaAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| NegationExpression | The $type name of NegationExpression nodes: NegationExpression.$type is 'NegationExpression', the name reflection.isInstance and a switch on node.$type use. |
| NegationPattern | The $type name of NegationPattern nodes: NegationPattern.$type is 'NegationPattern', the name reflection.isInstance and a switch on node.$type use. |
| OffsetStage | The $type name of OffsetStage nodes: OffsetStage.$type is 'OffsetStage', the name reflection.isInstance and a switch on node.$type use. |
| OptionalPattern | The $type name of OptionalPattern nodes: OptionalPattern.$type is 'OptionalPattern', the name reflection.isInstance and a switch on node.$type use. |
| OwnsProperty | The $type name of OwnsProperty nodes: OwnsProperty.$type is 'OwnsProperty', the name reflection.isInstance and a switch on node.$type use. |
| OwnsTrait | The $type name of OwnsTrait nodes: OwnsTrait.$type is 'OwnsTrait', the name reflection.isInstance and a switch on node.$type use. |
| Pattern | The $type name of Pattern nodes: Pattern.$type is 'Pattern', the name reflection.isInstance and a switch on node.$type use. |
| PatternBlock | The $type name of PatternBlock nodes: PatternBlock.$type is 'PatternBlock', the name reflection.isInstance and a switch on node.$type use. |
| Pipeline | The $type name of Pipeline nodes: Pipeline.$type is 'Pipeline', the name reflection.isInstance and a switch on node.$type use. |
| PlaysProperty | The $type name of PlaysProperty nodes: PlaysProperty.$type is 'PlaysProperty', the name reflection.isInstance and a switch on node.$type use. |
| PlaysTrait | The $type name of PlaysTrait nodes: PlaysTrait.$type is 'PlaysTrait', the name reflection.isInstance and a switch on node.$type use. |
| Property | The $type name of Property nodes: Property.$type is 'Property', the name reflection.isInstance and a switch on node.$type use. |
| PutStage | The $type name of PutStage nodes: PutStage.$type is 'PutStage', the name reflection.isInstance and a switch on node.$type use. |
| RangeAnnotation | The $type name of RangeAnnotation nodes: RangeAnnotation.$type is 'RangeAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| RedefineAnnotations | The $type name of RedefineAnnotations nodes: RedefineAnnotations.$type is 'RedefineAnnotations', the name reflection.isInstance and a switch on node.$type use. |
| RedefineChange | The $type name of RedefineChange nodes: RedefineChange.$type is 'RedefineChange', the name reflection.isInstance and a switch on node.$type use. |
| RedefineClause | The $type name of RedefineClause nodes: RedefineClause.$type is 'RedefineClause', the name reflection.isInstance and a switch on node.$type use. |
| RedefineLabel | The $type name of RedefineLabel nodes: RedefineLabel.$type is 'RedefineLabel', the name reflection.isInstance and a switch on node.$type use. |
| RedefineRoleLabel | The $type name of RedefineRoleLabel nodes: RedefineRoleLabel.$type is 'RedefineRoleLabel', the name reflection.isInstance and a switch on node.$type use. |
| RedefineSub | The $type name of RedefineSub nodes: RedefineSub.$type is 'RedefineSub', the name reflection.isInstance and a switch on node.$type use. |
| RedefineTrait | The $type name of RedefineTrait nodes: RedefineTrait.$type is 'RedefineTrait', the name reflection.isInstance and a switch on node.$type use. |
| RedefineType | The $type name of RedefineType nodes: RedefineType.$type is 'RedefineType', the name reflection.isInstance and a switch on node.$type use. |
| RedefineValue | The $type name of RedefineValue nodes: RedefineValue.$type is 'RedefineValue', the name reflection.isInstance and a switch on node.$type use. |
| Redefinition | The $type name of Redefinition nodes: Redefinition.$type is 'Redefinition', the name reflection.isInstance and a switch on node.$type use. |
| ReduceStage | The $type name of ReduceStage nodes: ReduceStage.$type is 'ReduceStage', the name reflection.isInstance and a switch on node.$type use. |
| Reduction | The $type name of Reduction nodes: Reduction.$type is 'Reduction', the name reflection.isInstance and a switch on node.$type use. |
| reflection | The one TypeQLiteAstReflection, which the is… type guards ask. |
| RegexAnnotation | The $type name of RegexAnnotation nodes: RegexAnnotation.$type is 'RegexAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| RelatesProperty | The $type name of RelatesProperty nodes: RelatesProperty.$type is 'RelatesProperty', the name reflection.isInstance and a switch on node.$type use. |
| RelatesTrait | The $type name of RelatesTrait nodes: RelatesTrait.$type is 'RelatesTrait', the name reflection.isInstance and a switch on node.$type use. |
| RelationDef | The $type name of RelationDef nodes: RelationDef.$type is 'RelationDef', the name reflection.isInstance and a switch on node.$type use. |
| RequireStage | The $type name of RequireStage nodes: RequireStage.$type is 'RequireStage', the name reflection.isInstance and a switch on node.$type use. |
| ReturnReduction | The $type name of ReturnReduction nodes: ReturnReduction.$type is 'ReturnReduction', the name reflection.isInstance and a switch on node.$type use. |
| ReturnStage | The $type name of ReturnStage nodes: ReturnStage.$type is 'ReturnStage', the name reflection.isInstance and a switch on node.$type use. |
| RoleName | The $type name of RoleName nodes: RoleName.$type is 'RoleName', the name reflection.isInstance and a switch on node.$type use. |
| RolePlayer | The $type name of RolePlayer nodes: RolePlayer.$type is 'RolePlayer', the name reflection.isInstance and a switch on node.$type use. |
| RolePlayers | The $type name of RolePlayers nodes: RolePlayers.$type is 'RolePlayers', the name reflection.isInstance and a switch on node.$type use. |
| RoleRef | The $type name of RoleRef nodes: RoleRef.$type is 'RoleRef', the name reflection.isInstance and a switch on node.$type use. |
| SelectStage | The $type name of SelectStage nodes: SelectStage.$type is 'SelectStage', the name reflection.isInstance and a switch on node.$type use. |
| SortKey | The $type name of SortKey nodes: SortKey.$type is 'SortKey', the name reflection.isInstance and a switch on node.$type use. |
| SortStage | The $type name of SortStage nodes: SortStage.$type is 'SortStage', the name reflection.isInstance and a switch on node.$type use. |
| Stage | The $type name of Stage nodes: Stage.$type is 'Stage', the name reflection.isInstance and a switch on node.$type use. |
| StringLiteral | The $type name of StringLiteral nodes: StringLiteral.$type is 'StringLiteral', the name reflection.isInstance and a switch on node.$type use. |
| StructDef | The $type name of StructDef nodes: StructDef.$type is 'StructDef', the name reflection.isInstance and a switch on node.$type use. |
| StructField | The $type name of StructField nodes: StructField.$type is 'StructField', the name reflection.isInstance and a switch on node.$type use. |
| SubProperty | The $type name of SubProperty nodes: SubProperty.$type is 'SubProperty', the name reflection.isInstance and a switch on node.$type use. |
| ThingPattern | The $type name of ThingPattern nodes: ThingPattern.$type is 'ThingPattern', the name reflection.isInstance and a switch on node.$type use. |
| Trait | The $type name of Trait nodes: Trait.$type is 'Trait', the name reflection.isInstance and a switch on node.$type use. |
| TypeExtensionDef | The $type name of TypeExtensionDef nodes: TypeExtensionDef.$type is 'TypeExtensionDef', the name reflection.isInstance and a switch on node.$type use. |
| TypePattern | The $type name of TypePattern nodes: TypePattern.$type is 'TypePattern', the name reflection.isInstance and a switch on node.$type use. |
| TypeQLiteFile | The $type name of TypeQLiteFile nodes: TypeQLiteFile.$type is 'TypeQLiteFile', the name reflection.isInstance and a switch on node.$type use. |
| TypeQLiteTerminals | The regular expression of each of the grammar’s terminal rules (variables, literals, names, whitespace and comments), by rule name. |
| UndefineAnnotation | The $type name of UndefineAnnotation nodes: UndefineAnnotation.$type is 'UndefineAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| UndefineClause | The $type name of UndefineClause nodes: UndefineClause.$type is 'UndefineClause', the name reflection.isInstance and a switch on node.$type use. |
| UndefineFrom | The $type name of UndefineFrom nodes: UndefineFrom.$type is 'UndefineFrom', the name reflection.isInstance and a switch on node.$type use. |
| UndefineOwns | The $type name of UndefineOwns nodes: UndefineOwns.$type is 'UndefineOwns', the name reflection.isInstance and a switch on node.$type use. |
| UndefinePlays | The $type name of UndefinePlays nodes: UndefinePlays.$type is 'UndefinePlays', the name reflection.isInstance and a switch on node.$type use. |
| UndefineRelates | The $type name of UndefineRelates nodes: UndefineRelates.$type is 'UndefineRelates', the name reflection.isInstance and a switch on node.$type use. |
| UndefineSpecialize | The $type name of UndefineSpecialize nodes: UndefineSpecialize.$type is 'UndefineSpecialize', the name reflection.isInstance and a switch on node.$type use. |
| UndefineSub | The $type name of UndefineSub nodes: UndefineSub.$type is 'UndefineSub', the name reflection.isInstance and a switch on node.$type use. |
| UndefineTarget | The $type name of UndefineTarget nodes: UndefineTarget.$type is 'UndefineTarget', the name reflection.isInstance and a switch on node.$type use. |
| UndefineType | The $type name of UndefineType nodes: UndefineType.$type is 'UndefineType', the name reflection.isInstance and a switch on node.$type use. |
| UndefineValue | The $type name of UndefineValue nodes: UndefineValue.$type is 'UndefineValue', the name reflection.isInstance and a switch on node.$type use. |
| Undefinition | The $type name of Undefinition nodes: Undefinition.$type is 'Undefinition', the name reflection.isInstance and a switch on node.$type use. |
| UniqueAnnotation | The $type name of UniqueAnnotation nodes: UniqueAnnotation.$type is 'UniqueAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| UpdateStage | The $type name of UpdateStage nodes: UpdateStage.$type is 'UpdateStage', the name reflection.isInstance and a switch on node.$type use. |
| ValueProperty | The $type name of ValueProperty nodes: ValueProperty.$type is 'ValueProperty', the name reflection.isInstance and a switch on node.$type use. |
| ValuesAnnotation | The $type name of ValuesAnnotation nodes: ValuesAnnotation.$type is 'ValuesAnnotation', the name reflection.isInstance and a switch on node.$type use. |
| VariableExpression | The $type name of VariableExpression nodes: VariableExpression.$type is 'VariableExpression', the name reflection.isInstance and a switch on node.$type use. |
| WriteStage | The $type name of WriteStage nodes: WriteStage.$type is 'WriteStage', the name reflection.isInstance and a switch on node.$type use. |
| isAbstractAnnotation | Whether item is an AbstractAnnotation node, as a type guard. It is true for any subtype too. |
| isAnnotation | Whether item is an Annotation node, as a type guard. It is true for any subtype too. |
| isAnnotationKeyword | Whether item is one of the keywords of the grammar rule AnnotationKeyword, as a type guard. |
| isAnonRelationPattern | Whether item is an AnonRelationPattern node, as a type guard. It is true for any subtype too. |
| isAttributeDef | Whether item is an AttributeDef node, as a type guard. It is true for any subtype too. |
| isBinaryExpression | Whether item is a BinaryExpression node, as a type guard. It is true for any subtype too. |
| isBooleanLiteral | Whether item is a BooleanLiteral node, as a type guard. It is true for any subtype too. |
| isCallComparisonPattern | Whether item is a CallComparisonPattern node, as a type guard. It is true for any subtype too. |
| isCapability | Whether item is a Capability node, as a type guard. It is true for any subtype too. |
| isCapabilityOwns | Whether item is a CapabilityOwns node, as a type guard. It is true for any subtype too. |
| isCapabilityPlays | Whether item is a CapabilityPlays node, as a type guard. It is true for any subtype too. |
| isCapabilityRelates | Whether item is a CapabilityRelates node, as a type guard. It is true for any subtype too. |
| isCapabilitySub | Whether item is a CapabilitySub node, as a type guard. It is true for any subtype too. |
| isCapabilityValue | Whether item is a CapabilityValue node, as a type guard. It is true for any subtype too. |
| isCardAnnotation | Whether item is a CardAnnotation node, as a type guard. It is true for any subtype too. |
| isCascadeAnnotation | Whether item is a CascadeAnnotation node, as a type guard. It is true for any subtype too. |
| isClause | Whether item is a Clause node, as a type guard. It is true for any subtype too. |
| isComparator | Whether item is one of the keywords of the grammar rule Comparator, as a type guard. |
| isComparisonPattern | Whether item is a ComparisonPattern node, as a type guard. It is true for any subtype too. |
| isDateLiteral | Whether item is a DateLiteral node, as a type guard. It is true for any subtype too. |
| isDatetimeLiteral | Whether item is a DatetimeLiteral node, as a type guard. It is true for any subtype too. |
| isDatetimeTzLiteral | Whether item is a DatetimeTzLiteral node, as a type guard. It is true for any subtype too. |
| isDecimalLiteral | Whether item is a DecimalLiteral node, as a type guard. It is true for any subtype too. |
| isDefineClause | Whether item is a DefineClause node, as a type guard. It is true for any subtype too. |
| isDefinition | Whether item is a Definition node, as a type guard. It is true for any subtype too. |
| isDeleteStage | Whether item is a DeleteStage node, as a type guard. It is true for any subtype too. |
| isDeletion | Whether item is a Deletion node, as a type guard. It is true for any subtype too. |
| isDisjunctionPattern | Whether item is a DisjunctionPattern node, as a type guard. It is true for any subtype too. |
| isDistinctAnnotation | Whether item is a DistinctAnnotation node, as a type guard. It is true for any subtype too. |
| isDistinctStage | Whether item is a DistinctStage node, as a type guard. It is true for any subtype too. |
| isDocAnnotation | Whether item is a DocAnnotation node, as a type guard. It is true for any subtype too. |
| isDoubleLiteral | Whether item is a DoubleLiteral node, as a type guard. It is true for any subtype too. |
| isDurationLiteral | Whether item is a DurationLiteral node, as a type guard. It is true for any subtype too. |
| isEntityDef | Whether item is an EntityDef node, as a type guard. It is true for any subtype too. |
| isExpression | Whether item is an Expression node, as a type guard. It is true for any subtype too. |
| isFetchAllAttributes | Whether item is a FetchAllAttributes node, as a type guard. It is true for any subtype too. |
| isFetchAttribute | Whether item is a FetchAttribute node, as a type guard. It is true for any subtype too. |
| isFetchEntry | Whether item is a FetchEntry node, as a type guard. It is true for any subtype too. |
| isFetchExpression | Whether item is a FetchExpression node, as a type guard. It is true for any subtype too. |
| isFetchKeyValue | Whether item is a FetchKeyValue node, as a type guard. It is true for any subtype too. |
| isFetchList | Whether item is a FetchList node, as a type guard. It is true for any subtype too. |
| isFetchObject | Whether item is a FetchObject node, as a type guard. It is true for any subtype too. |
| isFetchSingle | Whether item is a FetchSingle node, as a type guard. It is true for any subtype too. |
| isFetchStage | Whether item is a FetchStage node, as a type guard. It is true for any subtype too. |
| isFetchValue | Whether item is a FetchValue node, as a type guard. It is true for any subtype too. |
| isFunctionBody | Whether item is a FunctionBody node, as a type guard. It is true for any subtype too. |
| isFunctionDefinition | Whether item is a FunctionDefinition node, as a type guard. It is true for any subtype too. |
| isFunctionExpression | Whether item is a FunctionExpression node, as a type guard. It is true for any subtype too. |
| isFunctionName | Whether item is a value of the grammar rule FunctionName, which is plain text. A type guard. |
| isFunctionOutput | Whether item is a FunctionOutput node, as a type guard. It is true for any subtype too. |
| isFunctionOutputType | Whether item is a FunctionOutputType node, as a type guard. It is true for any subtype too. |
| isFunctionParameter | Whether item is a FunctionParameter node, as a type guard. It is true for any subtype too. |
| isGivenDeclaration | Whether item is a GivenDeclaration node, as a type guard. It is true for any subtype too. |
| isGivenStage | Whether item is a GivenStage node, as a type guard. It is true for any subtype too. |
| isHasProperty | Whether item is a HasProperty node, as a type guard. It is true for any subtype too. |
| isIidProperty | Whether item is an IidProperty node, as a type guard. It is true for any subtype too. |
| isIndependentAnnotation | Whether item is an IndependentAnnotation node, as a type guard. It is true for any subtype too. |
| isInsertStage | Whether item is an InsertStage node, as a type guard. It is true for any subtype too. |
| isIntLiteral | Whether item is an IntLiteral node, as a type guard. It is true for any subtype too. |
| isIsaProperty | Whether item is an IsaProperty node, as a type guard. It is true for any subtype too. |
| isIsPattern | Whether item is an IsPattern node, as a type guard. It is true for any subtype too. |
| isKeyAnnotation | Whether item is a KeyAnnotation node, as a type guard. It is true for any subtype too. |
| isKind | Whether item is one of the keywords of the grammar rule Kind, as a type guard. |
| isKindLabelPattern | Whether item is a KindLabelPattern node, as a type guard. It is true for any subtype too. |
| isKindPattern | Whether item is a KindPattern node, as a type guard. It is true for any subtype too. |
| isLabelExpression | Whether item is a LabelExpression node, as a type guard. It is true for any subtype too. |
| isLabelProperty | Whether item is a LabelProperty node, as a type guard. It is true for any subtype too. |
| isLeadStage | Whether item is a LeadStage node, as a type guard. It is true for any subtype too. |
| isLetPattern | Whether item is a LetPattern node, as a type guard. It is true for any subtype too. |
| isLimitStage | Whether item is a LimitStage node, as a type guard. It is true for any subtype too. |
| isLinksProperty | Whether item is a LinksProperty node, as a type guard. It is true for any subtype too. |
| isLiteral | Whether item is a Literal node, as a type guard. It is true for any subtype too. |
| isLiteralExpression | Whether item is a LiteralExpression node, as a type guard. It is true for any subtype too. |
| isMatchStage | Whether item is a MatchStage node, as a type guard. It is true for any subtype too. |
| isMetaAnnotation | Whether item is a MetaAnnotation node, as a type guard. It is true for any subtype too. |
| isNegationExpression | Whether item is a NegationExpression node, as a type guard. It is true for any subtype too. |
| isNegationPattern | Whether item is a NegationPattern node, as a type guard. It is true for any subtype too. |
| isOffsetStage | Whether item is an OffsetStage node, as a type guard. It is true for any subtype too. |
| isOptionalPattern | Whether item is an OptionalPattern node, as a type guard. It is true for any subtype too. |
| isOwnsProperty | Whether item is an OwnsProperty node, as a type guard. It is true for any subtype too. |
| isOwnsTrait | Whether item is an OwnsTrait node, as a type guard. It is true for any subtype too. |
| isPattern | Whether item is a Pattern node, as a type guard. It is true for any subtype too. |
| isPatternBlock | Whether item is a PatternBlock node, as a type guard. It is true for any subtype too. |
| isPipeline | Whether item is a Pipeline node, as a type guard. It is true for any subtype too. |
| isPlaysProperty | Whether item is a PlaysProperty node, as a type guard. It is true for any subtype too. |
| isPlaysTrait | Whether item is a PlaysTrait node, as a type guard. It is true for any subtype too. |
| isProperty | Whether item is a Property node, as a type guard. It is true for any subtype too. |
| isPutStage | Whether item is a PutStage node, as a type guard. It is true for any subtype too. |
| isRangeAnnotation | Whether item is a RangeAnnotation node, as a type guard. It is true for any subtype too. |
| isRedefineAnnotations | Whether item is a RedefineAnnotations node, as a type guard. It is true for any subtype too. |
| isRedefineChange | Whether item is a RedefineChange node, as a type guard. It is true for any subtype too. |
| isRedefineClause | Whether item is a RedefineClause node, as a type guard. It is true for any subtype too. |
| isRedefineLabel | Whether item is a RedefineLabel node, as a type guard. It is true for any subtype too. |
| isRedefineRoleLabel | Whether item is a RedefineRoleLabel node, as a type guard. It is true for any subtype too. |
| isRedefineSub | Whether item is a RedefineSub node, as a type guard. It is true for any subtype too. |
| isRedefineTrait | Whether item is a RedefineTrait node, as a type guard. It is true for any subtype too. |
| isRedefineType | Whether item is a RedefineType node, as a type guard. It is true for any subtype too. |
| isRedefineValue | Whether item is a RedefineValue node, as a type guard. It is true for any subtype too. |
| isRedefinition | Whether item is a Redefinition node, as a type guard. It is true for any subtype too. |
| isReduceStage | Whether item is a ReduceStage node, as a type guard. It is true for any subtype too. |
| isReduction | Whether item is a Reduction node, as a type guard. It is true for any subtype too. |
| isRegexAnnotation | Whether item is a RegexAnnotation node, as a type guard. It is true for any subtype too. |
| isRelatesProperty | Whether item is a RelatesProperty node, as a type guard. It is true for any subtype too. |
| isRelatesTrait | Whether item is a RelatesTrait node, as a type guard. It is true for any subtype too. |
| isRelationDef | Whether item is a RelationDef node, as a type guard. It is true for any subtype too. |
| isRequireStage | Whether item is a RequireStage node, as a type guard. It is true for any subtype too. |
| isReturnReduction | Whether item is a ReturnReduction node, as a type guard. It is true for any subtype too. |
| isReturnStage | Whether item is a ReturnStage node, as a type guard. It is true for any subtype too. |
| isRoleName | Whether item is a RoleName node, as a type guard. It is true for any subtype too. |
| isRolePlayer | Whether item is a RolePlayer node, as a type guard. It is true for any subtype too. |
| isRolePlayers | Whether item is a RolePlayers node, as a type guard. It is true for any subtype too. |
| isRoleRef | Whether item is a RoleRef node, as a type guard. It is true for any subtype too. |
| isScopedLabel | Whether item is a value of the grammar rule ScopedLabel, which is plain text. A type guard. |
| isSelectStage | Whether item is a SelectStage node, as a type guard. It is true for any subtype too. |
| isSortKey | Whether item is a SortKey node, as a type guard. It is true for any subtype too. |
| isSortStage | Whether item is a SortStage node, as a type guard. It is true for any subtype too. |
| isStage | Whether item is a Stage node, as a type guard. It is true for any subtype too. |
| isStringLiteral | Whether item is a StringLiteral node, as a type guard. It is true for any subtype too. |
| isStructDef | Whether item is a StructDef node, as a type guard. It is true for any subtype too. |
| isStructField | Whether item is a StructField node, as a type guard. It is true for any subtype too. |
| isSubProperty | Whether item is a SubProperty node, as a type guard. It is true for any subtype too. |
| isThingPattern | Whether item is a ThingPattern node, as a type guard. It is true for any subtype too. |
| isTrait | Whether item is a Trait node, as a type guard. It is true for any subtype too. |
| isTypeDefinition | Whether a definition is a type’s: what every schema rule about types reads. |
| isTypeExtensionDef | Whether item is a TypeExtensionDef node, as a type guard. It is true for any subtype too. |
| isTypePattern | Whether item is a TypePattern node, as a type guard. It is true for any subtype too. |
| isTypeQLiteFile | Whether item is a TypeQLiteFile node, as a type guard. It is true for any subtype too. |
| isUndefineAnnotation | Whether item is an UndefineAnnotation node, as a type guard. It is true for any subtype too. |
| isUndefineClause | Whether item is an UndefineClause node, as a type guard. It is true for any subtype too. |
| isUndefineFrom | Whether item is an UndefineFrom node, as a type guard. It is true for any subtype too. |
| isUndefineOwns | Whether item is an UndefineOwns node, as a type guard. It is true for any subtype too. |
| isUndefinePlays | Whether item is an UndefinePlays node, as a type guard. It is true for any subtype too. |
| isUndefineRelates | Whether item is an UndefineRelates node, as a type guard. It is true for any subtype too. |
| isUndefineSpecialize | Whether item is an UndefineSpecialize node, as a type guard. It is true for any subtype too. |
| isUndefineSub | Whether item is an UndefineSub node, as a type guard. It is true for any subtype too. |
| isUndefineTarget | Whether item is an UndefineTarget node, as a type guard. It is true for any subtype too. |
| isUndefineType | Whether item is an UndefineType node, as a type guard. It is true for any subtype too. |
| isUndefineValue | Whether item is an UndefineValue node, as a type guard. It is true for any subtype too. |
| isUndefinition | Whether item is an Undefinition node, as a type guard. It is true for any subtype too. |
| isUniqueAnnotation | Whether item is an UniqueAnnotation node, as a type guard. It is true for any subtype too. |
| isUpdateStage | Whether item is an UpdateStage node, as a type guard. It is true for any subtype too. |
| isValueProperty | Whether item is a ValueProperty node, as a type guard. It is true for any subtype too. |
| isValuesAnnotation | Whether item is a ValuesAnnotation node, as a type guard. It is true for any subtype too. |
| isValueType | Whether item is a value of the grammar rule ValueType: one of its keywords, or other text. A type guard. |
| isVariableExpression | Whether item is a VariableExpression node, as a type guard. It is true for any subtype too. |
| isWriteStage | Whether item is a WriteStage node, as a type guard. It is true for any subtype too. |
Validation
Section titled “Validation”The checks that run on a parsed statement, synchronously, and the stable codes that name them. The engine’s diagnostic codes are built on these.
| Name | Description |
|---|---|
| SyncValidationRegistry | A registry whose wrapper keeps a synchronous check synchronous. |
| TypeQLiteDocumentValidator | The unknown-label warning (ADR-008 D6). |
| TypeQLiteValidator | TypeQLite’s validation checks, as methods. registerValidationChecks registers them with the services’ validation registry; the runtime runs them synchronously through validateSync. |
| MatchBindings | What a match binds, read from the AST alone. |
| SyncDiagnostic | A diagnostic whose message is plain text. |
| TypeQLiteValidationCodeValue | A diagnostic code of a validation rule: one of the values of TypeQLiteValidationCode. |
| TypeQLiteValidationCode | Diagnostic codes for the validation rules, defined once. |
| bindingsOf | What the patterns of a match bind, read from the AST alone: the variables a select may name, the things with what their patterns say of them, and the variables that only play roles. |
| expressionVariables | The variables an expression reads, in order of appearance. |
| isReservedKeyword | Whether TypeDB refuses word as an identifier with [DEX31] — see RESERVED. |
| registerValidationChecks | Validation for what the grammar accepts but the runtime does not implement. |
| reservedKeywordMessage | The [DEX31] refusal, worded once for the validator and for the engine’s parse step. |
| validateSync | Run the registered validation checks over an AST, synchronously. |
Language features
Section titled “Language features”What an editor asks of the language: completion, hover, outline, go to definition, references, rename and quick fixes, with the scoping and labelling they rely on. The VS Code extension runs these in a language server.
| Name | Description |
|---|---|
| TypeQLiteCodeActionProvider | Quick fixes, only where the fix is mechanical and the diagnostic’s code says which fix it is. |
| TypeQLiteCompletionProvider | Completion for TypeQLite. |
| TypeQLiteDefinitionProvider | Go to definition for a label that is a plain ID (isa person). Langium answers for cross-references first; when it finds nothing, the label is resolved through TypeQLiteLabels to the definitions it names (ADR-008 D5). |
| TypeQLiteDocumentBuilder | Relinks a document that holds labels whenever any document changes. |
| TypeQLiteDocumentSymbolProvider | The outline. Langium’s default lists every node with a name. A re-open has none (it names the type it re-opens through type), so employment relates manager; would vanish from the outline, and the role it adds with it. |
| TypeQLiteHoverProvider | Hover over a definition, or anything that refers to one: its source, its documentation, and where else the workspace re-opens it. |
| TypeQLiteLabels | Labels that are plain IDs: every position where TypeQLite names a type without a cross-reference (ADR-008 D5). That covers pipelines (isa, has, links, role players, type patterns), a re-open’s label, and undefine and redefine targets. |
| TypeQLiteNodeKindProvider | A definition’s kind, as the outline, workspace symbols and completion show it. |
| TypeQLiteReferencesProvider | References to a type are its cross-references (owns name, sub person) and its labels (has name, isa person), wherever the request starts from: a declaration, a cross-reference, or a label. |
| TypeQLiteRenameProvider | Rename a type or a role everywhere the workspace names it. |
| TypeQLiteScopeComputation | What a TypeQLite document contributes to the workspace’s one schema (ADR-008 D3). |
| TypeQLiteScopeProvider | Scoping for TypeQLite: role references, and the order in which one workspace’s schema is searched. |
| LabelSite | A position in a document where TypeQLite names a type or a role with a plain ID. |
| LabelKind | What a label position expects to name. type is any thing type. A role carries the label of its relation when the surrounding pattern says which relation it is. |
| TypeQLiteLabelServices | The Langium services, with TypeQLite’s label resolver: what the label-aware providers are constructed with. |
| LABEL_POSITIONS | The same label positions, by grammar rule and property: what completion sees while a statement is still being typed, before there is an AST node to ask. |
| NOTEBOOK_CELL_SCHEME | Whose schema a document is part of (ADR-012 N4). |
| docCommentOf | TypeDB’s doc comment: #! This represents a person on the line or lines directly above a definition. Returns undefined when there is none. |
| editDistance | Levenshtein distance: how many single-character edits turn one label into the other. |
| kindOf | The word that introduces a definition: the outline’s detail, and hover’s heading. |
| relationBefore | The relation a role being typed belongs to, read from the text before the cursor. The statement is unfinished, so it may not parse, and the text is all there is. |
Annotations
Section titled “Annotations”Which annotations are admitted where, and what values they take.
| Name | Description |
|---|---|
| AnnotationCategory | The kind of an annotation: its keyword without the @, which is also its node type’s name without Annotation, lower-cased. |
| AnnotationSubject | Where each annotation may sit: the places TypeDB 3 admits it, as its behavior specification states row by row. |
| ADMITTED | For each place an annotation can sit, the categories it admits there. The whole of the placement rule. |
| VALUE_TYPES | The value types TypeDB 3 has. long is TypeDB 2’s name for integer, kept for older callers. |
| categoryOf | CardAnnotation → card: the category is the node’s own type name. |
| keywordOf | CardAnnotation → @card, for messages. |
| literalFits | Whether a literal can constrain a value type — @values(0.1) cannot constrain an integer, @regex("A") nothing but a string, @range("A".."B") nothing but a string. The table is the specification’s own wrong value type outlines: an integer literal fits integer, double and decimal (no row refuses it there); a string fits string, and duration when it reads as one. |
| literalKind | What a literal is, for a message: a string, an integer, … |
| subjectsAdmitting | The subjects that admit a category — named in the refusal, so it says where the annotation goes. |
Highlighting
Section titled “Highlighting”The TextMate grammar for editors and highlighters that color code with one, generated from the grammar’s keywords.
| Name | Description |
|---|---|
| TextMateGrammar | A TextMate grammar, as the JSON file VS Code reads: what typeqliteTextMate returns. |
| KEYWORD_SCOPES | The TextMate scope of each keyword of TypeQLite, by scope: what an editor colors before, and underneath, the semantic tokens. |
| TEXTMATE_OUT | The file the grammar is written to, beside langium-config.json. |
| grammarKeywords | The keywords of a Langium grammar, collected as langium-cli’s own TextMate generator collects them: every keyword in a reachable parser or infix rule. (collectKeywords is not exported from langium-cli, so this restates it.) |
| typeqliteTextMate | The grammar for these keywords. Throws, naming them, when a keyword has no scope in KEYWORD_SCOPES or the table names one the keywords lack. |
| Name | Description |
|---|---|
| WORKSPACE_OWNER | The owner of every document that is not a notebook cell. |
| sameSchema | Whether two documents are part of the same schema. |
| schemaOwnerOf | The key of the schema a document belongs to: its notebook for a cell, the workspace for anything else. |
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.