MCPcopy Create free account
hub / github.com/angular/angular / _isTextEnd

Method _isTextEnd

packages/compiler/src/ml_parser/lexer.ts:1387–1414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

tokenizeMethod · 0.95

Calls 7

_isTagStartMethod · 0.95
isExpansionFormStartMethod · 0.95
_isInExpansionCaseMethod · 0.95
_isInExpansionMethod · 0.95
_isBlockStartMethod · 0.95
_isLetStartMethod · 0.95
peekMethod · 0.65

Tested by

no test coverage detected