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

Method _attemptCharCode

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

Source from the content-addressed store, hash-verified

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

Callers 9

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