Properties
Alias
Alias: function = this.RULE('Alias', () => {this.CONSUME(graphQlTokenMap.Name);this.CONSUME(graphQlTokenMap.Colon);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Argument
Argument: function = this.RULE('Argument', (isConst: boolean) => {this.SUBRULE(this.Alias);this.SUBRULE(this.Value, { ARGS: [isConst] });})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Arguments
Arguments: function = this.RULE('Arguments', (isConst: boolean) => {this.CONSUME(graphQlTokenMap.LParen);this.AT_LEAST_ONE(() => this.SUBRULE(this.Argument, { ARGS: [isConst] }));this.CONSUME(graphQlTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ArgumentsDefinition
ArgumentsDefinition: function = this.RULE('ArgumentsDefinition', () => {this.CONSUME(graphQlTokenMap.LParen);this.AT_LEAST_ONE(() => this.SUBRULE(this.InputValueDefinition));this.CONSUME(graphQlTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
BooleanValue
BooleanValue: function = this.RULE('BooleanValue', () => {this.CONSUME(graphQlTokenMap.BooleanValueToken);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
DefaultValue
DefaultValue: function = this.RULE('DefaultValue', () => {this.CONSUME(graphQlTokenMap.Equals);this.SUBRULE(this.Value, { ARGS: [true /* isConst */] });})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Definition
Definition: function = this.RULE('Definition', () => {this.OR([{ ALT: () => this.SUBRULE(this.ExecutableDefinition) },{ ALT: () => this.SUBRULE(this.TypeSystemDefinition) },{ ALT: () => this.SUBRULE(this.TypeSystemExtension) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Description
Description: function = this.RULE('Description', () => {this.SUBRULE(this.StringValue);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Directive
Directive: function = this.RULE('Directive', (isConst: boolean) => {this.CONSUME(graphQlTokenMap.At);this.CONSUME(graphQlTokenMap.Name);this.OPTION(() => this.SUBRULE(this.Arguments, { ARGS: [isConst] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
DirectiveDefinition
DirectiveDefinition: function = this.RULE('DirectiveDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.DirectiveToken);this.CONSUME(graphQlTokenMap.At);this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() => this.SUBRULE(this.ArgumentsDefinition));this.CONSUME(graphQlTokenMap.On);this.SUBRULE(this.DirectiveLocations);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
DirectiveLocation
DirectiveLocation: function = this.RULE('DirectiveLocation', () => {this.OR([{ ALT: () => this.SUBRULE(this.ExecutableDirectiveLocation) },{ ALT: () => this.SUBRULE(this.TypeSystemDirectiveLocation) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
DirectiveLocations
DirectiveLocations: function = this.RULE('DirectiveLocations', () => {this.OPTION(() => this.CONSUME(graphQlTokenMap.Pipe));this.SUBRULE(this.DirectiveLocation);this.MANY(() => {this.CONSUME1(graphQlTokenMap.Pipe);this.SUBRULE1(this.DirectiveLocation);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Directives
Directives: function = this.RULE('Directives', (isConst: boolean) => {this.AT_LEAST_ONE(() => this.SUBRULE(this.Directive, { ARGS: [isConst] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Document
Document: function = this.RULE('Document', () => {this.AT_LEAST_ONE(() => this.SUBRULE(this.Definition));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EnumTypeDefinition
EnumTypeDefinition: function = this.RULE('EnumTypeDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Enum);this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));this.OPTION2(() => this.SUBRULE(this.EnumValuesDefinition));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EnumTypeExtension
EnumTypeExtension: function = this.RULE('EnumTypeExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.Enum);this.CONSUME(graphQlTokenMap.Name);this.OR([{ALT: () => {this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });this.OPTION(() => this.SUBRULE(this.EnumValuesDefinition));},},{ ALT: () => this.SUBRULE1(this.EnumValuesDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EnumValue
EnumValue: function = this.RULE('EnumValue', () => {this.CONSUME(graphQlTokenMap.EnumValueToken);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EnumValueDefinition
EnumValueDefinition: function = this.RULE('EnumValueDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.SUBRULE(this.EnumValue);this.OPTION1(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
EnumValuesDefinition
EnumValuesDefinition: function = this.RULE('EnumValuesDefinition', () => {this.CONSUME(graphQlTokenMap.LCurly);this.AT_LEAST_ONE(() => this.SUBRULE(this.EnumValueDefinition));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ExecutableDefinition
ExecutableDefinition: function = this.RULE('ExecutableDefinition', () => {this.OR([{ ALT: () => this.SUBRULE(this.OperationDefinition) },{ ALT: () => this.SUBRULE(this.FragmentDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ExecutableDirectiveLocation
ExecutableDirectiveLocation: function = this.RULE('ExecutableDirectiveLocation', () => {this.OR([{ ALT: () => this.CONSUME(graphQlTokenMap.QUERY) },{ ALT: () => this.CONSUME(graphQlTokenMap.MUTATION) },{ ALT: () => this.CONSUME(graphQlTokenMap.SUBSCRIPTION) },{ ALT: () => this.CONSUME(graphQlTokenMap.FIELD) },{ ALT: () => this.CONSUME(graphQlTokenMap.FRAGMENT_DEFINITION) },{ ALT: () => this.CONSUME(graphQlTokenMap.FRAGMENT_SPREAD) },{ ALT: () => this.CONSUME(graphQlTokenMap.INLINE_FRAGMENT) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Field
Field: function = this.RULE('Field', () => {this.OPTION(() => this.SUBRULE(this.Alias));this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() =>this.SUBRULE(this.Arguments, { ARGS: [false /* isConst */] }));this.OPTION2(() => this.SUBRULE(this.Directives));this.OPTION3(() => this.SUBRULE(this.SelectionSet));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
FieldDefinition
FieldDefinition: function = this.RULE('FieldDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() => this.SUBRULE(this.ArgumentsDefinition));this.CONSUME(graphQlTokenMap.Colon);this.SUBRULE(this.Type);this.OPTION2(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
FieldsDefinition
FieldsDefinition: function = this.RULE('FieldsDefinition', () => {this.CONSUME(graphQlTokenMap.LCurly);this.AT_LEAST_ONE(() => this.SUBRULE(this.FieldDefinition));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
FloatValue
FloatValue: function = this.RULE('FloatValue', () => {this.CONSUME(graphQlTokenMap.FloatValueToken);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
FragmentDefinition
FragmentDefinition: function = this.RULE('FragmentDefinition', () => {this.CONSUME(graphQlTokenMap.Fragment);this.CONSUME(graphQlTokenMap.FragmentName);this.SUBRULE(this.TypeCondition);this.OPTION(() => this.SUBRULE(this.Directives));this.SUBRULE(this.SelectionSet);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
FragmentSpread
FragmentSpread: function = this.RULE('FragmentSpread', () => {this.CONSUME(graphQlTokenMap.Spread);this.CONSUME(graphQlTokenMap.FragmentName);this.OPTION(() => this.SUBRULE(this.Directives));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ImplementsInterfaces
ImplementsInterfaces: function = this.RULE('ImplementsInterfaces', () => {this.CONSUME(graphQlTokenMap.Implements);this.OPTION(() => this.CONSUME(graphQlTokenMap.Amp));this.SUBRULE(this.NamedType);this.MANY(() => {this.CONSUME1(graphQlTokenMap.Amp);this.SUBRULE1(this.NamedType);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InlineFragment
InlineFragment: function = this.RULE('InlineFragment', () => {this.CONSUME(graphQlTokenMap.Spread);this.OPTION(() => this.SUBRULE(this.TypeCondition));this.OPTION1(() => this.SUBRULE(this.Directives));this.SUBRULE(this.SelectionSet);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InputFieldsDefinition
InputFieldsDefinition: function = this.RULE('InputFieldsDefinition', () => {this.CONSUME(graphQlTokenMap.LCurly);this.AT_LEAST_ONE(() => this.SUBRULE(this.InputValueDefinition));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InputObjectTypeDefinition
InputObjectTypeDefinition: function = this.RULE('InputObjectTypeDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Input);this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));this.OPTION2(() => this.SUBRULE(this.InputFieldsDefinition));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InputObjectTypeExtension
InputObjectTypeExtension: function = this.RULE('InputObjectTypeExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.Input);this.CONSUME(graphQlTokenMap.Name);this.OR([{ALT: () => {this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });this.OPTION(() => this.SUBRULE1(this.InputFieldsDefinition));},},{ ALT: () => this.SUBRULE(this.InputFieldsDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InputValueDefinition
InputValueDefinition: function = this.RULE('InputValueDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Name);this.CONSUME(graphQlTokenMap.Colon);this.SUBRULE(this.Type);this.OPTION1(() => this.SUBRULE(this.DefaultValue));this.OPTION2(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
IntValue
IntValue: function = this.RULE('IntValue', () => {this.CONSUME(graphQlTokenMap.IntValueToken);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InterfaceTypeDefinition
InterfaceTypeDefinition: function = this.RULE('InterfaceTypeDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Interface);this.CONSUME(graphQlTokenMap.Name);this.OPTION2(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));this.OPTION3(() => this.SUBRULE(this.FieldsDefinition));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
InterfaceTypeExtension
InterfaceTypeExtension: function = this.RULE('InterfaceTypeExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.Interface);this.CONSUME(graphQlTokenMap.Name);this.OR([{ALT: () => {this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });this.OPTION(() => this.SUBRULE(this.FieldsDefinition));},},{ ALT: () => this.SUBRULE1(this.FieldsDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ListType
ListType: function = this.RULE('ListType', () => {this.CONSUME(graphQlTokenMap.LBracket);this.SUBRULE(this.Type);this.CONSUME(graphQlTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ListValue
ListValue: function = this.RULE('ListValue', (isConst: boolean) => {this.CONSUME(graphQlTokenMap.LBracket);this.MANY(() => this.SUBRULE(this.Value, { ARGS: [isConst] }));this.CONSUME(graphQlTokenMap.RBracket);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
NamedType
NamedType: function = this.RULE('NamedType', () => {this.CONSUME(graphQlTokenMap.Name);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
NullValue
NullValue: function = this.RULE('NullValue', () => {this.CONSUME(graphQlTokenMap.NullValueToken);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ObjectField
ObjectField: function = this.RULE('ObjectField', (isConst: boolean) => {this.SUBRULE(this.Alias);this.SUBRULE(this.Value, { ARGS: [isConst] });})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ObjectTypeDefinition
ObjectTypeDefinition: function = this.RULE('ObjectTypeDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.TypeToken);this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() => this.SUBRULE(this.ImplementsInterfaces));this.OPTION2(() =>this.SUBRULE1(this.Directives, { ARGS: [true /* isConst */] }));this.OPTION3(() => this.SUBRULE(this.FieldsDefinition));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ObjectTypeExtension
ObjectTypeExtension: function = this.RULE('ObjectTypeExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.TypeToken);this.CONSUME(graphQlTokenMap.Name);this.OR([{ALT: () => {this.SUBRULE(this.ImplementsInterfaces);this.OPTION(() =>this.SUBRULE1(this.Directives, { ARGS: [true /* isConst */] }));this.OPTION1(() => this.SUBRULE(this.FieldsDefinition));},},{ALT: () => {this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });this.OPTION2(() => this.SUBRULE1(this.FieldsDefinition));},},{ ALT: () => this.SUBRULE2(this.FieldsDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ObjectValue
ObjectValue: function = this.RULE('ObjectValue', (isConst: boolean) => {this.CONSUME(graphQlTokenMap.LCurly);this.MANY(() => this.SUBRULE(this.ObjectField, { ARGS: [isConst] }));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
OperationDefinition
OperationDefinition: function = this.RULE('OperationDefinition', () => {this.OR([{ ALT: () => this.SUBRULE(this.SelectionSet) },{ALT: () => {this.SUBRULE(this.OperationType);this.OPTION(() => this.CONSUME(graphQlTokenMap.Name));this.OPTION1(() => this.SUBRULE(this.VariableDefinitions));this.OPTION2(() => this.SUBRULE(this.Directives));this.SUBRULE1(this.SelectionSet);},},]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
OperationType
OperationType: function = this.RULE('OperationType', () => {this.OR([{ ALT: () => this.CONSUME(graphQlTokenMap.Query) },{ ALT: () => this.CONSUME(graphQlTokenMap.Mutation) },{ ALT: () => this.CONSUME(graphQlTokenMap.Subscription) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
OperationTypeDefinition
OperationTypeDefinition: function = this.RULE('OperationTypeDefinition', () => {this.SUBRULE(this.OperationType);this.CONSUME(graphQlTokenMap.Colon);this.SUBRULE(this.NamedType);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
OperationTypeDefinitionList
OperationTypeDefinitionList: function = this.RULE('OperationTypeDefinitionList', () => {this.CONSUME(graphQlTokenMap.LCurly);this.AT_LEAST_ONE(() => this.SUBRULE(this.OperationTypeDefinition));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ScalarTypeDefinition
ScalarTypeDefinition: function = this.RULE('ScalarTypeDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Scalar);this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
ScalarTypeExtension
ScalarTypeExtension: function = this.RULE('ScalarTypeExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.Scalar);this.CONSUME(graphQlTokenMap.Name);this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
SchemaDefinition
SchemaDefinition: function = this.RULE('SchemaDefinition', () => {this.CONSUME(graphQlTokenMap.Schema);this.OPTION(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));this.CONSUME(graphQlTokenMap.LCurly);this.AT_LEAST_ONE(() => this.SUBRULE(this.OperationTypeDefinition));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
SchemaExtension
SchemaExtension: function = this.RULE('SchemaExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.Schema);this.OR([{ALT: () => {this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });this.OPTION(() => this.SUBRULE1(this.OperationTypeDefinitionList));},},{ ALT: () => this.SUBRULE(this.OperationTypeDefinitionList) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Selection
Selection: function = this.RULE('Selection', () => {this.OR([{ ALT: () => this.SUBRULE(this.Field) },{ ALT: () => this.SUBRULE(this.InlineFragment) },{ ALT: () => this.SUBRULE(this.FragmentSpread) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
SelectionSet
SelectionSet: function = this.RULE('SelectionSet', () => {this.CONSUME(graphQlTokenMap.LCurly);this.AT_LEAST_ONE(() => this.SUBRULE(this.Selection));this.CONSUME(graphQlTokenMap.RCurly);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
StringValue
StringValue: function = this.RULE('StringValue', () => {this.CONSUME(graphQlTokenMap.StringValueToken);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Type
Type: function = this.RULE('Type', () => {this.OR([{ ALT: () => this.SUBRULE(this.NamedType) },{ ALT: () => this.SUBRULE(this.ListType) },]);this.OPTION(() => this.CONSUME(graphQlTokenMap.Bang));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
TypeCondition
TypeCondition: function = this.RULE('TypeCondition', () => {this.CONSUME(graphQlTokenMap.On);this.SUBRULE(this.NamedType);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
TypeDefinition
TypeDefinition: function = this.RULE('TypeDefinition', () => {this.OR([{ ALT: () => this.SUBRULE(this.ScalarTypeDefinition) },{ ALT: () => this.SUBRULE(this.ObjectTypeDefinition) },{ ALT: () => this.SUBRULE(this.InterfaceTypeDefinition) },{ ALT: () => this.SUBRULE(this.UnionTypeDefinition) },{ ALT: () => this.SUBRULE(this.EnumTypeDefinition) },{ ALT: () => this.SUBRULE(this.InputObjectTypeDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
TypeExtension
TypeExtension: function = this.RULE('TypeExtension', () => {this.OR([{ ALT: () => this.SUBRULE(this.ScalarTypeExtension) },{ ALT: () => this.SUBRULE(this.ObjectTypeExtension) },{ ALT: () => this.SUBRULE(this.InterfaceTypeExtension) },{ ALT: () => this.SUBRULE(this.UnionTypeExtension) },{ ALT: () => this.SUBRULE(this.EnumTypeExtension) },{ ALT: () => this.SUBRULE(this.InputObjectTypeExtension) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
TypeSystemDefinition
TypeSystemDefinition: function = this.RULE('TypeSystemDefinition', () => {this.OR([{ ALT: () => this.SUBRULE(this.SchemaDefinition) },{ ALT: () => this.SUBRULE(this.TypeDefinition) },{ ALT: () => this.SUBRULE(this.DirectiveDefinition) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
TypeSystemDirectiveLocation
TypeSystemDirectiveLocation: function = this.RULE('TypeSystemDirectiveLocation', () => {this.OR([{ ALT: () => this.CONSUME(graphQlTokenMap.SCHEMA) },{ ALT: () => this.CONSUME(graphQlTokenMap.SCALAR) },{ ALT: () => this.CONSUME(graphQlTokenMap.OBJECT) },{ ALT: () => this.CONSUME(graphQlTokenMap.FIELD_DEFINITION) },{ ALT: () => this.CONSUME(graphQlTokenMap.ARGUMENT_DEFINITION) },{ ALT: () => this.CONSUME(graphQlTokenMap.INTERFACE) },{ ALT: () => this.CONSUME(graphQlTokenMap.UNION) },{ ALT: () => this.CONSUME(graphQlTokenMap.ENUM) },{ ALT: () => this.CONSUME(graphQlTokenMap.ENUM_VALUE) },{ ALT: () => this.CONSUME(graphQlTokenMap.INPUT_OBJECT) },{ ALT: () => this.CONSUME(graphQlTokenMap.INPUT_FIELD_DEFINITION) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
TypeSystemExtension
TypeSystemExtension: function = this.RULE('TypeSystemExtension', () => {this.OR([{ ALT: () => this.SUBRULE(this.SchemaExtension) },{ ALT: () => this.SUBRULE(this.TypeExtension) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
UnionMemberTypes
UnionMemberTypes: function = this.RULE('UnionMemberTypes', () => {this.CONSUME(graphQlTokenMap.Equals);this.OPTION(() => this.CONSUME(graphQlTokenMap.Pipe));this.SUBRULE(this.NamedType);this.MANY(() => {this.CONSUME1(graphQlTokenMap.Pipe);this.SUBRULE1(this.NamedType);});})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
UnionTypeDefinition
UnionTypeDefinition: function = this.RULE('UnionTypeDefinition', () => {this.OPTION(() => this.SUBRULE(this.Description));this.CONSUME(graphQlTokenMap.Union);this.CONSUME(graphQlTokenMap.Name);this.OPTION1(() =>this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] }));this.OPTION2(() => this.SUBRULE(this.UnionMemberTypes));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
UnionTypeExtension
UnionTypeExtension: function = this.RULE('UnionTypeExtension', () => {this.CONSUME(graphQlTokenMap.Extend);this.CONSUME(graphQlTokenMap.Union);this.CONSUME(graphQlTokenMap.Name);this.OR([{ALT: () => {this.SUBRULE(this.Directives, { ARGS: [true /* isConst */] });this.OPTION(() => this.SUBRULE(this.UnionMemberTypes));},},{ ALT: () => this.SUBRULE1(this.UnionMemberTypes) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Value
Value: function = this.RULE('Value', (isConst: boolean) => {this.OR([{ GATE: () => !isConst, ALT: () => this.SUBRULE(this.Variable) },{ ALT: () => this.SUBRULE(this.IntValue) },{ ALT: () => this.SUBRULE(this.FloatValue) },{ ALT: () => this.SUBRULE(this.StringValue) },{ ALT: () => this.SUBRULE(this.BooleanValue) },{ ALT: () => this.SUBRULE(this.NullValue) },{ ALT: () => this.SUBRULE(this.EnumValue) },{ ALT: () => this.SUBRULE(this.ListValue, { ARGS: [isConst] }) },{ ALT: () => this.SUBRULE(this.ObjectValue, { ARGS: [isConst] }) },]);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
Variable
Variable: function = this.RULE('Variable', () => {this.CONSUME(graphQlTokenMap.Dollar);this.CONSUME(graphQlTokenMap.Name);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
VariableDefinition
VariableDefinition: function = this.RULE('VariableDefinition', () => {this.SUBRULE(this.Variable);this.CONSUME(graphQlTokenMap.Colon);this.SUBRULE(this.Type);this.OPTION(() => this.SUBRULE(this.DefaultValue));})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
VariableDefinitions
VariableDefinitions: function = this.RULE('VariableDefinitions', () => {this.CONSUME(graphQlTokenMap.LParen);this.AT_LEAST_ONE(() => this.SUBRULE(this.VariableDefinition));this.CONSUME(graphQlTokenMap.RParen);})
Type declaration
-
- (idxInCallingRule?: number, ...args: any[]): T | any
-
Parameters
-
Optional idxInCallingRule: number
-
Rest ...args: any[]
Returns T
|
any
errors
errors: IRecognitionException[]
Convenience method, same as MANY but the repetition is of one or more. failing to match at least one repetition will result in a parsing error and cause a parsing error.
MANY