(stopChars)
| 9144 | } |
| 9145 | |
| 9146 | function scanJSXText(stopChars) { |
| 9147 | var ch, str = '', start; |
| 9148 | start = index; |
| 9149 | while (index < length) { |
| 9150 | ch = source[index]; |
| 9151 | if (stopChars.indexOf(ch) !== -1) { |
| 9152 | break; |
| 9153 | } |
| 9154 | if (ch === '&') { |
| 9155 | str += scanJSXEntity(); |
| 9156 | } else { |
| 9157 | index++; |
| 9158 | if (ch === '\r' && source[index] === '\n') { |
| 9159 | str += ch; |
| 9160 | ch = source[index]; |
| 9161 | index++; |
| 9162 | } |
| 9163 | if (isLineTerminator(ch.charCodeAt(0))) { |
| 9164 | ++lineNumber; |
| 9165 | lineStart = index; |
| 9166 | } |
| 9167 | str += ch; |
| 9168 | } |
| 9169 | } |
| 9170 | return { |
| 9171 | type: Token.JSXText, |
| 9172 | value: str, |
| 9173 | lineNumber: lineNumber, |
| 9174 | lineStart: lineStart, |
| 9175 | range: [start, index] |
| 9176 | }; |
| 9177 | } |
| 9178 | |
| 9179 | function scanJSXStringLiteral() { |
| 9180 | var innerToken, quote, start; |
no test coverage detected