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

Method _isTextEnd

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

Source from the content-addressed store, hash-verified

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