(parser)
| 138 | } |
| 139 | |
| 140 | parseAssignableExpression(parser) { |
| 141 | parser.matchToken("the"); // optional "the" |
| 142 | var expr = parser.parseElement("primaryExpression"); |
| 143 | var checkExpr = expr; |
| 144 | while (checkExpr && checkExpr.type === "parenthesized") { |
| 145 | checkExpr = checkExpr.expr; |
| 146 | } |
| 147 | if (checkExpr && this.#assignableExpressions.includes(checkExpr.type)) { |
| 148 | return expr; |
| 149 | } else { |
| 150 | parser.raiseError( |
| 151 | "A target expression must be writable. The expression type '" + (checkExpr && checkExpr.type) + "' is not." |
| 152 | ); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | parseIndirectStatement(parser, root) { |
| 157 | if (parser.matchToken("unless")) { |
nothing calls this directly
no test coverage detected