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

Method _isTextEnd

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

Source from the content-addressed store, hash-verified

1401 }
1402
1403 private _isTextEnd(): boolean {
1404 if (this._isTagStart() || this._cursor.peek() === chars.$EOF) {
1405 return true;
1406 }
1407
1408 if (this._tokenizeIcu && !this._inInterpolation) {
1409 if (this.isExpansionFormStart()) {
1410 // start of an expansion form
1411 return true;
1412 }
1413
1414 if (this._cursor.peek() === chars.$RBRACE && this._isInExpansionCase()) {
1415 // end of and expansion case
1416 return true;
1417 }
1418 }
1419
1420 if (
1421 this._tokenizeBlocks &&
1422 !this._inInterpolation &&
1423 !this._isInExpansion() &&
1424 (this._isBlockStart() || this._isLetStart() || this._cursor.peek() === chars.$RBRACE)
1425 ) {
1426 return true;
1427 }
1428
1429 return false;
1430 }
1431
1432 /**
1433 * 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