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

Method _attemptCharCode

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

Source from the content-addressed store, hash-verified

545 }
546
547 private _attemptCharCode(charCode: number): boolean {
548 if (this._cursor.peek() === charCode) {
549 this._cursor.advance();
550 return true;
551 }
552 return false;
553 }
554
555 private _attemptCharCodeCaseInsensitive(charCode: number): boolean {
556 if (compareCharCodeCaseInsensitive(this._cursor.peek(), charCode)) {

Callers 10

tokenizeMethod · 0.95
_consumeBlockStartMethod · 0.95
_requireCharCodeMethod · 0.95
_attemptStrMethod · 0.95
_consumeEntityMethod · 0.95
_consumeAttributeMethod · 0.95
_consumeTagOpenEndMethod · 0.95

Calls 2

peekMethod · 0.65
advanceMethod · 0.65

Tested by

no test coverage detected