* ObjectField[Const] : Name : Value[?Const]
(isConst)
| 2365 | * ObjectField[Const] : Name : Value[?Const] |
| 2366 | */ |
| 2367 | parseObjectField(isConst) { |
| 2368 | const start = this._lexer.token; |
| 2369 | const name = this.parseName(); |
| 2370 | this.expectToken(_tokenKind.TokenKind.COLON); |
| 2371 | return this.node(start, { |
| 2372 | kind: _kinds.Kind.OBJECT_FIELD, |
| 2373 | name, |
| 2374 | value: this.parseValueLiteral(isConst) |
| 2375 | }); |
| 2376 | } |
| 2377 | // Implements the parsing rules in the Directives section. |
| 2378 | /** |
| 2379 | * Directives[Const] : Directive[?Const]+ |
no test coverage detected