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

Method _requireStr

packages/compiler/src/ml_parser/lexer.ts:599–607  ·  view source on GitHub ↗
(chars: string)

Source from the content-addressed store, hash-verified

597 }
598
599 private _requireStr(chars: string) {
600 const location = this._cursor.clone();
601 if (!this._attemptStr(chars)) {
602 throw this._createError(
603 _unexpectedCharacterErrorMsg(this._cursor.peek()),
604 this._cursor.getSpan(location),
605 );
606 }
607 }
608
609 private _attemptCharCodeUntilFn(predicate: (code: number) => boolean) {
610 while (!predicate(this._cursor.peek())) {

Callers 3

_consumeCommentMethod · 0.95
_consumeCdataMethod · 0.95

Calls 6

_attemptStrMethod · 0.95
_createErrorMethod · 0.95
cloneMethod · 0.65
peekMethod · 0.65
getSpanMethod · 0.65

Tested by

no test coverage detected