Skip to content

Commit 8a4d688

Browse files
committed
revert
1 parent 6b31543 commit 8a4d688

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

src/language/parser.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export interface ParseOptions {
8888
* contained in a fragment definition. They'll be represented in the
8989
* `variableDefinitions` field of the FragmentDefinitionNode.
9090
*
91-
* The syntax is identical to normal, query-defined variables.
91+
* The syntax is identical to normal, query-defined variables. For example:
92+
*
9293
* ```graphql
9394
* fragment A($var: Boolean = false) on T {
9495
* ...
@@ -203,9 +204,7 @@ export class Parser {
203204
// Implements the parsing rules in the Document section.
204205

205206
/**
206-
* ```
207207
* Document : Definition+
208-
* ```
209208
*/
210209
parseDocument(): DocumentNode {
211210
return this.node<DocumentNode>(this._lexer.token, {
@@ -219,7 +218,6 @@ export class Parser {
219218
}
220219

221220
/**
222-
* ```
223221
* Definition :
224222
* - ExecutableDefinition
225223
* - TypeSystemDefinition
@@ -228,7 +226,6 @@ export class Parser {
228226
* ExecutableDefinition :
229227
* - OperationDefinition
230228
* - FragmentDefinition
231-
* ```
232229
*/
233230
parseDefinition(): DefinitionNode {
234231
if (this.peek(TokenKind.NAME)) {
@@ -263,11 +260,9 @@ export class Parser {
263260
// Implements the parsing rules in the Operations section.
264261

265262
/**
266-
* ```
267263
* OperationDefinition :
268264
* - SelectionSet
269265
* - OperationType Name? VariableDefinitions? Directives? SelectionSet
270-
* ```
271266
*/
272267
parseOperationDefinition(): OperationDefinitionNode {
273268
const start = this._lexer.token;
@@ -297,9 +292,7 @@ export class Parser {
297292
}
298293

299294
/**
300-
* ```
301295
* OperationType : one of query mutation subscription
302-
* ```
303296
*/
304297
parseOperationType(): OperationTypeNode {
305298
const operationToken = this.expectToken(TokenKind.NAME);
@@ -316,9 +309,7 @@ export class Parser {
316309
}
317310

318311
/**
319-
* ```
320312
* VariableDefinitions : ( VariableDefinition+ )
321-
* ```
322313
*/
323314
parseVariableDefinitions(): Array<VariableDefinitionNode> {
324315
return this.optionalMany(
@@ -329,9 +320,7 @@ export class Parser {
329320
}
330321

331322
/**
332-
* ```
333323
* VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
334-
* ```
335324
*/
336325
parseVariableDefinition(): VariableDefinitionNode {
337326
return this.node<VariableDefinitionNode>(this._lexer.token, {

src/type/definition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ export interface GraphQLInterfaceTypeExtensions {
10931093
* all types, as well as a function to determine which type is actually used
10941094
* when the field is resolved.
10951095
*
1096-
* example
1096+
* Example
10971097
* ```ts
10981098
* const EntityType = new GraphQLInterfaceType({
10991099
* name: 'Entity',

0 commit comments

Comments
 (0)