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

Method _isTextEnd

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

Source from the content-addressed store, hash-verified

1226 }
1227
1228 private _isTextEnd(): boolean {
1229 if (this._isTagStart() || this._cursor.peek() === chars.$EOF) {
1230 return true;
1231 }
1232
1233 if (this._tokenizeIcu && !this._inInterpolation) {
1234 if (this.isExpansionFormStart()) {
1235 // start of an expansion form
1236 return true;
1237 }
1238
1239 if (this._cursor.peek() === chars.$RBRACE && this._isInExpansionCase()) {
1240 // end of and expansion case
1241 return true;
1242 }
1243 }
1244
1245 if (
1246 this._tokenizeBlocks &&
1247 !this._inInterpolation &&
1248 !this._isInExpansion() &&
1249 (this._isBlockStart() || this._isLetStart() || this._cursor.peek() === chars.$RBRACE)
1250 ) {
1251 return true;
1252 }
1253
1254 return false;
1255 }
1256
1257 /**
1258 * 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