()
| 1385 | } |
| 1386 | |
| 1387 | private _isTextEnd(): boolean { |
| 1388 | if (this._isTagStart() || this._cursor.peek() === chars.$EOF) { |
| 1389 | return true; |
| 1390 | } |
| 1391 | |
| 1392 | if (this._tokenizeIcu && !this._inInterpolation) { |
| 1393 | if (this.isExpansionFormStart()) { |
| 1394 | // start of an expansion form |
| 1395 | return true; |
| 1396 | } |
| 1397 | |
| 1398 | if (this._cursor.peek() === chars.$RBRACE && this._isInExpansionCase()) { |
| 1399 | // end of and expansion case |
| 1400 | return true; |
| 1401 | } |
| 1402 | } |
| 1403 | |
| 1404 | if ( |
| 1405 | this._tokenizeBlocks && |
| 1406 | !this._inInterpolation && |
| 1407 | !this._isInExpansion() && |
| 1408 | (this._isBlockStart() || this._isLetStart() || this._cursor.peek() === chars.$RBRACE) |
| 1409 | ) { |
| 1410 | return true; |
| 1411 | } |
| 1412 | |
| 1413 | return false; |
| 1414 | } |
| 1415 | |
| 1416 | /** |
| 1417 | * Returns true if the current cursor is pointing to the start of a tag |
no test coverage detected