* Argument[Const] : Name : Value[?Const]
(isConst = false)
| 2155 | * Argument[Const] : Name : Value[?Const] |
| 2156 | */ |
| 2157 | parseArgument(isConst = false) { |
| 2158 | const start = this._lexer.token; |
| 2159 | const name = this.parseName(); |
| 2160 | this.expectToken(_tokenKind.TokenKind.COLON); |
| 2161 | return this.node(start, { |
| 2162 | kind: _kinds.Kind.ARGUMENT, |
| 2163 | name, |
| 2164 | value: this.parseValueLiteral(isConst) |
| 2165 | }); |
| 2166 | } |
| 2167 | parseConstArgument() { |
| 2168 | return this.parseArgument(true); |
| 2169 | } |
no test coverage detected