()
| 910 | } |
| 911 | |
| 912 | private parseLogicalOr(): AST { |
| 913 | // '||' |
| 914 | const start = this.inputIndex; |
| 915 | let result = this.parseLogicalAnd(); |
| 916 | while (this.consumeOptionalOperator('||')) { |
| 917 | const right = this.parseLogicalAnd(); |
| 918 | result = new Binary(this.span(start), this.sourceSpan(start), '||', result, right); |
| 919 | } |
| 920 | return result; |
| 921 | } |
| 922 | |
| 923 | private parseLogicalAnd(): AST { |
| 924 | // '&&' |
no test coverage detected