()
| 164 | } |
| 165 | |
| 166 | private parseUnary(): ExprNode { |
| 167 | this.skipWhitespace(); |
| 168 | if (this.consumeIf("-")) { |
| 169 | return { |
| 170 | kind: "unary", |
| 171 | op: "-", |
| 172 | operand: this.parseUnary(), |
| 173 | }; |
| 174 | } |
| 175 | return this.parseAtom(); |
| 176 | } |
| 177 | |
| 178 | private parseAtom(): ExprNode { |
| 179 | this.skipWhitespace(); |
no test coverage detected