(min, max, from, to)
| 58068 | } |
| 58069 | |
| 58070 | function createClassRange(min, max, from, to) { |
| 58071 | // See 15.10.2.15: |
| 58072 | if (min.codePoint > max.codePoint) { |
| 58073 | bail('invalid range in character class', min.raw + '-' + max.raw, from, to); |
| 58074 | } |
| 58075 | |
| 58076 | return addRaw({ |
| 58077 | type: 'characterClassRange', |
| 58078 | min: min, |
| 58079 | max: max, |
| 58080 | range: [from, to] |
| 58081 | }); |
| 58082 | } |
| 58083 | |
| 58084 | function flattenBody(body) { |
| 58085 | if (body.type === 'alternative') { |
no test coverage detected