@@ -1081,71 +1081,71 @@ Note: this feature is experimental and may change or be removed in the
1081
1081
future.)
1082
1082
Those magic functions allow partial parsing:
1083
1083
1084
- @method static NameNode name(Source|string $source, bool [ ] $options = [ ] )
1085
- @method static ExecutableDefinitionNode|TypeSystemDefinitionNode definition(Source|string $source, bool [ ] $options = [ ] )
1086
- @method static ExecutableDefinitionNode executableDefinition(Source|string $source, bool [ ] $options = [ ] )
1087
- @method static OperationDefinitionNode operationDefinition(Source|string $source, bool [ ] $options = [ ] )
1088
- @method static string operationType(Source|string $source, bool [ ] $options = [ ] )
1089
- @method static NodeList<VariableDefinitionNode > variableDefinitions(Source|string $source, bool [ ] $options = [ ] )
1090
- @method static VariableDefinitionNode variableDefinition(Source|string $source, bool [ ] $options = [ ] )
1091
- @method static VariableNode variable(Source|string $source, bool [ ] $options = [ ] )
1092
- @method static SelectionSetNode selectionSet(Source|string $source, bool [ ] $options = [ ] )
1093
- @method static mixed selection(Source|string $source, bool [ ] $options = [ ] )
1094
- @method static FieldNode field(Source|string $source, bool [ ] $options = [ ] )
1095
- @method static NodeList<ArgumentNode > arguments(Source|string $source, bool [ ] $options = [ ] )
1096
- @method static NodeList<ArgumentNode > constArguments(Source|string $source, bool [ ] $options = [ ] )
1097
- @method static ArgumentNode argument(Source|string $source, bool [ ] $options = [ ] )
1098
- @method static ArgumentNode constArgument(Source|string $source, bool [ ] $options = [ ] )
1099
- @method static FragmentSpreadNode|InlineFragmentNode fragment(Source|string $source, bool [ ] $options = [ ] )
1100
- @method static FragmentDefinitionNode fragmentDefinition(Source|string $source, bool [ ] $options = [ ] )
1101
- @method static NameNode fragmentName(Source|string $source, bool [ ] $options = [ ] )
1102
- @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|ListValueNode|NullValueNode|ObjectValueNode|StringValueNode|VariableNode valueLiteral(Source|string $source, bool [ ] $options = [ ] )
1103
- @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|ListValueNode|NullValueNode|ObjectValueNode|StringValueNode constValueLiteral(Source|string $source, bool [ ] $options = [ ] )
1104
- @method static StringValueNode stringLiteral(Source|string $source, bool [ ] $options = [ ] )
1105
- @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|StringValueNode constValue(Source|string $source, bool [ ] $options = [ ] )
1106
- @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|ListValueNode|ObjectValueNode|StringValueNode|VariableNode variableValue(Source|string $source, bool [ ] $options = [ ] )
1107
- @method static ListValueNode array(Source|string $source, bool [ ] $options = [ ] )
1108
- @method static ListValueNode constArray(Source|string $source, bool [ ] $options = [ ] )
1109
- @method static ObjectValueNode object(Source|string $source, bool [ ] $options = [ ] )
1110
- @method static ObjectValueNode constObject(Source|string $source, bool [ ] $options = [ ] )
1111
- @method static ObjectFieldNode objectField(Source|string $source, bool [ ] $options = [ ] )
1112
- @method static ObjectFieldNode constObjectField(Source|string $source, bool [ ] $options = [ ] )
1113
- @method static NodeList<DirectiveNode > directives(Source|string $source, bool [ ] $options = [ ] )
1114
- @method static NodeList<DirectiveNode > constDirectives(Source|string $source, bool [ ] $options = [ ] )
1115
- @method static DirectiveNode directive(Source|string $source, bool [ ] $options = [ ] )
1116
- @method static DirectiveNode constDirective(Source|string $source, bool [ ] $options = [ ] )
1117
- @method static ListTypeNode|NamedTypeNode|NonNullTypeNode typeReference(Source|string $source, bool [ ] $options = [ ] )
1118
- @method static NamedTypeNode namedType(Source|string $source, bool [ ] $options = [ ] )
1119
- @method static TypeSystemDefinitionNode typeSystemDefinition(Source|string $source, bool [ ] $options = [ ] )
1120
- @method static StringValueNode|null description(Source|string $source, bool [ ] $options = [ ] )
1121
- @method static SchemaDefinitionNode schemaDefinition(Source|string $source, bool [ ] $options = [ ] )
1122
- @method static OperationTypeDefinitionNode operationTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1123
- @method static ScalarTypeDefinitionNode scalarTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1124
- @method static ObjectTypeDefinitionNode objectTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1125
- @method static NodeList<NamedTypeNode > implementsInterfaces(Source|string $source, bool [ ] $options = [ ] )
1126
- @method static NodeList<FieldDefinitionNode > fieldsDefinition(Source|string $source, bool [ ] $options = [ ] )
1127
- @method static FieldDefinitionNode fieldDefinition(Source|string $source, bool [ ] $options = [ ] )
1128
- @method static NodeList<InputValueDefinitionNode > argumentsDefinition(Source|string $source, bool [ ] $options = [ ] )
1129
- @method static InputValueDefinitionNode inputValueDefinition(Source|string $source, bool [ ] $options = [ ] )
1130
- @method static InterfaceTypeDefinitionNode interfaceTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1131
- @method static UnionTypeDefinitionNode unionTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1132
- @method static NodeList<NamedTypeNode > unionMemberTypes(Source|string $source, bool [ ] $options = [ ] )
1133
- @method static EnumTypeDefinitionNode enumTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1134
- @method static NodeList<EnumValueDefinitionNode > enumValuesDefinition(Source|string $source, bool [ ] $options = [ ] )
1135
- @method static EnumValueDefinitionNode enumValueDefinition(Source|string $source, bool [ ] $options = [ ] )
1136
- @method static InputObjectTypeDefinitionNode inputObjectTypeDefinition(Source|string $source, bool [ ] $options = [ ] )
1137
- @method static NodeList<InputValueDefinitionNode > inputFieldsDefinition(Source|string $source, bool [ ] $options = [ ] )
1138
- @method static TypeExtensionNode typeExtension(Source|string $source, bool [ ] $options = [ ] )
1139
- @method static SchemaExtensionNode schemaTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1140
- @method static ScalarTypeExtensionNode scalarTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1141
- @method static ObjectTypeExtensionNode objectTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1142
- @method static InterfaceTypeExtensionNode interfaceTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1143
- @method static UnionTypeExtensionNode unionTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1144
- @method static EnumTypeExtensionNode enumTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1145
- @method static InputObjectTypeExtensionNode inputObjectTypeExtension(Source|string $source, bool [ ] $options = [ ] )
1146
- @method static DirectiveDefinitionNode directiveDefinition(Source|string $source, bool [ ] $options = [ ] )
1147
- @method static NodeList<NameNode > directiveLocations(Source|string $source, bool [ ] $options = [ ] )
1148
- @method static NameNode directiveLocation(Source|string $source, bool [ ] $options = [ ] )
1084
+ @method static NameNode name(Source|string $source, ParserOptions $options = [ ] )
1085
+ @method static ExecutableDefinitionNode|TypeSystemDefinitionNode definition(Source|string $source, ParserOptions $options = [ ] )
1086
+ @method static ExecutableDefinitionNode executableDefinition(Source|string $source, ParserOptions $options = [ ] )
1087
+ @method static OperationDefinitionNode operationDefinition(Source|string $source, ParserOptions $options = [ ] )
1088
+ @method static string operationType(Source|string $source, ParserOptions $options = [ ] )
1089
+ @method static NodeList<VariableDefinitionNode > variableDefinitions(Source|string $source, ParserOptions $options = [ ] )
1090
+ @method static VariableDefinitionNode variableDefinition(Source|string $source, ParserOptions $options = [ ] )
1091
+ @method static VariableNode variable(Source|string $source, ParserOptions $options = [ ] )
1092
+ @method static SelectionSetNode selectionSet(Source|string $source, ParserOptions $options = [ ] )
1093
+ @method static mixed selection(Source|string $source, ParserOptions $options = [ ] )
1094
+ @method static FieldNode field(Source|string $source, ParserOptions $options = [ ] )
1095
+ @method static NodeList<ArgumentNode > arguments(Source|string $source, ParserOptions $options = [ ] )
1096
+ @method static NodeList<ArgumentNode > constArguments(Source|string $source, ParserOptions $options = [ ] )
1097
+ @method static ArgumentNode argument(Source|string $source, ParserOptions $options = [ ] )
1098
+ @method static ArgumentNode constArgument(Source|string $source, ParserOptions $options = [ ] )
1099
+ @method static FragmentSpreadNode|InlineFragmentNode fragment(Source|string $source, ParserOptions $options = [ ] )
1100
+ @method static FragmentDefinitionNode fragmentDefinition(Source|string $source, ParserOptions $options = [ ] )
1101
+ @method static NameNode fragmentName(Source|string $source, ParserOptions $options = [ ] )
1102
+ @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|ListValueNode|NullValueNode|ObjectValueNode|StringValueNode|VariableNode valueLiteral(Source|string $source, ParserOptions $options = [ ] )
1103
+ @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|ListValueNode|NullValueNode|ObjectValueNode|StringValueNode constValueLiteral(Source|string $source, ParserOptions $options = [ ] )
1104
+ @method static StringValueNode stringLiteral(Source|string $source, ParserOptions $options = [ ] )
1105
+ @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|StringValueNode constValue(Source|string $source, ParserOptions $options = [ ] )
1106
+ @method static BooleanValueNode|EnumValueNode|FloatValueNode|IntValueNode|ListValueNode|ObjectValueNode|StringValueNode|VariableNode variableValue(Source|string $source, ParserOptions $options = [ ] )
1107
+ @method static ListValueNode array(Source|string $source, ParserOptions $options = [ ] )
1108
+ @method static ListValueNode constArray(Source|string $source, ParserOptions $options = [ ] )
1109
+ @method static ObjectValueNode object(Source|string $source, ParserOptions $options = [ ] )
1110
+ @method static ObjectValueNode constObject(Source|string $source, ParserOptions $options = [ ] )
1111
+ @method static ObjectFieldNode objectField(Source|string $source, ParserOptions $options = [ ] )
1112
+ @method static ObjectFieldNode constObjectField(Source|string $source, ParserOptions $options = [ ] )
1113
+ @method static NodeList<DirectiveNode > directives(Source|string $source, ParserOptions $options = [ ] )
1114
+ @method static NodeList<DirectiveNode > constDirectives(Source|string $source, ParserOptions $options = [ ] )
1115
+ @method static DirectiveNode directive(Source|string $source, ParserOptions $options = [ ] )
1116
+ @method static DirectiveNode constDirective(Source|string $source, ParserOptions $options = [ ] )
1117
+ @method static ListTypeNode|NamedTypeNode|NonNullTypeNode typeReference(Source|string $source, ParserOptions $options = [ ] )
1118
+ @method static NamedTypeNode namedType(Source|string $source, ParserOptions $options = [ ] )
1119
+ @method static TypeSystemDefinitionNode typeSystemDefinition(Source|string $source, ParserOptions $options = [ ] )
1120
+ @method static StringValueNode|null description(Source|string $source, ParserOptions $options = [ ] )
1121
+ @method static SchemaDefinitionNode schemaDefinition(Source|string $source, ParserOptions $options = [ ] )
1122
+ @method static OperationTypeDefinitionNode operationTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1123
+ @method static ScalarTypeDefinitionNode scalarTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1124
+ @method static ObjectTypeDefinitionNode objectTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1125
+ @method static NodeList<NamedTypeNode > implementsInterfaces(Source|string $source, ParserOptions $options = [ ] )
1126
+ @method static NodeList<FieldDefinitionNode > fieldsDefinition(Source|string $source, ParserOptions $options = [ ] )
1127
+ @method static FieldDefinitionNode fieldDefinition(Source|string $source, ParserOptions $options = [ ] )
1128
+ @method static NodeList<InputValueDefinitionNode > argumentsDefinition(Source|string $source, ParserOptions $options = [ ] )
1129
+ @method static InputValueDefinitionNode inputValueDefinition(Source|string $source, ParserOptions $options = [ ] )
1130
+ @method static InterfaceTypeDefinitionNode interfaceTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1131
+ @method static UnionTypeDefinitionNode unionTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1132
+ @method static NodeList<NamedTypeNode > unionMemberTypes(Source|string $source, ParserOptions $options = [ ] )
1133
+ @method static EnumTypeDefinitionNode enumTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1134
+ @method static NodeList<EnumValueDefinitionNode > enumValuesDefinition(Source|string $source, ParserOptions $options = [ ] )
1135
+ @method static EnumValueDefinitionNode enumValueDefinition(Source|string $source, ParserOptions $options = [ ] )
1136
+ @method static InputObjectTypeDefinitionNode inputObjectTypeDefinition(Source|string $source, ParserOptions $options = [ ] )
1137
+ @method static NodeList<InputValueDefinitionNode > inputFieldsDefinition(Source|string $source, ParserOptions $options = [ ] )
1138
+ @method static TypeExtensionNode typeExtension(Source|string $source, ParserOptions $options = [ ] )
1139
+ @method static SchemaExtensionNode schemaTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1140
+ @method static ScalarTypeExtensionNode scalarTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1141
+ @method static ObjectTypeExtensionNode objectTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1142
+ @method static InterfaceTypeExtensionNode interfaceTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1143
+ @method static UnionTypeExtensionNode unionTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1144
+ @method static EnumTypeExtensionNode enumTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1145
+ @method static InputObjectTypeExtensionNode inputObjectTypeExtension(Source|string $source, ParserOptions $options = [ ] )
1146
+ @method static DirectiveDefinitionNode directiveDefinition(Source|string $source, ParserOptions $options = [ ] )
1147
+ @method static NodeList<NameNode > directiveLocations(Source|string $source, ParserOptions $options = [ ] )
1148
+ @method static NameNode directiveLocation(Source|string $source, ParserOptions $options = [ ] )
1149
1149
1150
1150
@see \GraphQL\Tests\Language\ParserTest
1151
1151
0 commit comments