()
| 1294 | } |
| 1295 | } |
| 1296 | parseURLOrExpression() { |
| 1297 | var cur = this.currentToken(); |
| 1298 | if (cur.value === "/" && cur.type === "DIVIDE") { |
| 1299 | var tokens = this.consumeUntilWhitespace(); |
| 1300 | this.matchTokenType("WHITESPACE"); |
| 1301 | return new NakedString(tokens); |
| 1302 | } |
| 1303 | if (cur.type === "IDENTIFIER" && (cur.value === "http" || cur.value === "https" || cur.value === "ws" || cur.value === "wss")) { |
| 1304 | var tokens = this.consumeUntilWhitespace(); |
| 1305 | this.matchTokenType("WHITESPACE"); |
| 1306 | return new NakedString(tokens); |
| 1307 | } |
| 1308 | return this.requireElement("expression"); |
| 1309 | } |
| 1310 | ensureTerminated(commandList) { |
| 1311 | var implicitReturn = new ImplicitReturn(); |
| 1312 | var end = commandList; |
no test coverage detected