()
| 917 | } |
| 918 | |
| 919 | private parseLogicalOr(): AST { |
| 920 | // '||' |
| 921 | const start = this.inputIndex; |
| 922 | let result = this.parseLogicalAnd(); |
| 923 | while (this.consumeOptionalOperator('||')) { |
| 924 | const right = this.parseLogicalAnd(); |
| 925 | result = new Binary(this.span(start), this.sourceSpan(start), '||', result, right); |
| 926 | } |
| 927 | return result; |
| 928 | } |
| 929 | |
| 930 | private parseLogicalAnd(): AST { |
| 931 | // '&&' |
no test coverage detected