* `@` — at-keyword or delim. * @param {string} input input * @param {number} pos position just past `@` * @param {MutableToken} out token to populate * @returns {MutableToken | undefined} the resulting token, or undefined at EOF
(input, pos, out)
| 912 | * @returns {MutableToken | undefined} the resulting token, or undefined at EOF |
| 913 | */ |
| 914 | function consumeCommercialAt(input, pos, out) { |
| 915 | const start = pos - 1; |
| 916 | if ( |
| 917 | _ifThreeCodePointsWouldStartAnIdentSequence( |
| 918 | input, |
| 919 | pos, |
| 920 | input.charCodeAt(pos), |
| 921 | input.charCodeAt(pos + 1), |
| 922 | input.charCodeAt(pos + 2) |
| 923 | ) |
| 924 | ) { |
| 925 | pos = _consumeAnIdentSequence(input, pos); |
| 926 | return fill(out, TT_AT_KEYWORD, start, pos); |
| 927 | } |
| 928 | return fill(out, TT_DELIM, start, pos); |
| 929 | } |
| 930 | |
| 931 | /** |
| 932 | * `\` — escape starts an ident-like token, otherwise it's a delim. |
no test coverage detected