MCPcopy Index your code
hub / github.com/angular/angular / _isTextEnd

Method _isTextEnd

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

Source from the content-addressed store, hash-verified

1368 }
1369
1370 private _isTextEnd(): boolean {
1371 if (this._isTagStart() || this._cursor.peek() === chars.$EOF) {
1372 return true;
1373 }
1374
1375 if (this._tokenizeIcu && !this._inInterpolation) {
1376 if (this.isExpansionFormStart()) {
1377 // start of an expansion form
1378 return true;
1379 }
1380
1381 if (this._cursor.peek() === chars.$RBRACE && this._isInExpansionCase()) {
1382 // end of and expansion case
1383 return true;
1384 }
1385 }
1386
1387 if (
1388 this._tokenizeBlocks &&
1389 !this._inInterpolation &&
1390 !this._isInExpansion() &&
1391 (this._isBlockStart() || this._isLetStart() || this._cursor.peek() === chars.$RBRACE)
1392 ) {
1393 return true;
1394 }
1395
1396 return false;
1397 }
1398
1399 /**
1400 * 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