@@ -88,7 +88,8 @@ export interface ParseOptions {
88
88
* contained in a fragment definition. They'll be represented in the
89
89
* `variableDefinitions` field of the FragmentDefinitionNode.
90
90
*
91
- * The syntax is identical to normal, query-defined variables.
91
+ * The syntax is identical to normal, query-defined variables. For example:
92
+ *
92
93
* ```graphql
93
94
* fragment A($var: Boolean = false) on T {
94
95
* ...
@@ -203,9 +204,7 @@ export class Parser {
203
204
// Implements the parsing rules in the Document section.
204
205
205
206
/**
206
- * ```
207
207
* Document : Definition+
208
- * ```
209
208
*/
210
209
parseDocument ( ) : DocumentNode {
211
210
return this . node < DocumentNode > ( this . _lexer . token , {
@@ -219,7 +218,6 @@ export class Parser {
219
218
}
220
219
221
220
/**
222
- * ```
223
221
* Definition :
224
222
* - ExecutableDefinition
225
223
* - TypeSystemDefinition
@@ -228,7 +226,6 @@ export class Parser {
228
226
* ExecutableDefinition :
229
227
* - OperationDefinition
230
228
* - FragmentDefinition
231
- * ```
232
229
*/
233
230
parseDefinition ( ) : DefinitionNode {
234
231
if ( this . peek ( TokenKind . NAME ) ) {
@@ -263,11 +260,9 @@ export class Parser {
263
260
// Implements the parsing rules in the Operations section.
264
261
265
262
/**
266
- * ```
267
263
* OperationDefinition :
268
264
* - SelectionSet
269
265
* - OperationType Name? VariableDefinitions? Directives? SelectionSet
270
- * ```
271
266
*/
272
267
parseOperationDefinition ( ) : OperationDefinitionNode {
273
268
const start = this . _lexer . token ;
@@ -297,9 +292,7 @@ export class Parser {
297
292
}
298
293
299
294
/**
300
- * ```
301
295
* OperationType : one of query mutation subscription
302
- * ```
303
296
*/
304
297
parseOperationType ( ) : OperationTypeNode {
305
298
const operationToken = this . expectToken ( TokenKind . NAME ) ;
@@ -316,9 +309,7 @@ export class Parser {
316
309
}
317
310
318
311
/**
319
- * ```
320
312
* VariableDefinitions : ( VariableDefinition+ )
321
- * ```
322
313
*/
323
314
parseVariableDefinitions ( ) : Array < VariableDefinitionNode > {
324
315
return this . optionalMany (
@@ -329,9 +320,7 @@ export class Parser {
329
320
}
330
321
331
322
/**
332
- * ```
333
323
* VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
334
- * ```
335
324
*/
336
325
parseVariableDefinition ( ) : VariableDefinitionNode {
337
326
return this . node < VariableDefinitionNode > ( this . _lexer . token , {
0 commit comments