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

Method _requireCharCode

packages/compiler/src/ml_parser/lexer.ts:584–592  ·  view source on GitHub ↗
(charCode: number)

Source from the content-addressed store, hash-verified

582 }
583
584 private _requireCharCode(charCode: number) {
585 const location = this._cursor.clone();
586 if (!this._attemptCharCode(charCode)) {
587 throw this._createError(
588 _unexpectedCharacterErrorMsg(this._cursor.peek()),
589 this._cursor.getSpan(location),
590 );
591 }
592 }
593
594 private _attemptStr(chars: string): boolean {
595 const len = chars.length;

Callers 11

_consumeBlockStartMethod · 0.95
_consumeCommentMethod · 0.95
_consumeQuoteMethod · 0.95
_consumeTagOpenEndMethod · 0.95
_consumeTagCloseMethod · 0.95
_consumeDirectiveMethod · 0.95

Calls 6

_attemptCharCodeMethod · 0.95
_createErrorMethod · 0.95
cloneMethod · 0.65
peekMethod · 0.65
getSpanMethod · 0.65

Tested by

no test coverage detected