(type, value)
| 63 | var last_token = null; |
| 64 | |
| 65 | var consume = function(type, value) { |
| 66 | if (!tokens.length || tokens[0].type !== type) return; |
| 67 | if (typeof value === "undefined" || tokens[0].value === value) { |
| 68 | last_token = tokens.shift(); |
| 69 | if (type === ID) last_token.value = last_token.value.replace(/^_/, ""); |
| 70 | return last_token; |
| 71 | } |
| 72 | }; |
| 73 | |
| 74 | var ws = function() { |
| 75 | if (!tokens.length) return; |
no outgoing calls
no test coverage detected