* ``` * Directive[Const] : @ Name Arguments[?Const]? * ```
(isConst)
| 2394 | * ``` |
| 2395 | */ |
| 2396 | parseDirective(isConst) { |
| 2397 | const start = this._lexer.token; |
| 2398 | this.expectToken(_tokenKind.TokenKind.AT); |
| 2399 | return this.node(start, { |
| 2400 | kind: _kinds.Kind.DIRECTIVE, |
| 2401 | name: this.parseName(), |
| 2402 | arguments: this.parseArguments(isConst) |
| 2403 | }); |
| 2404 | } |
| 2405 | // Implements the parsing rules in the Types section. |
| 2406 | /** |
| 2407 | * Type : |
no test coverage detected