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

Method _attemptCharCode

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

Source from the content-addressed store, hash-verified

566 }
567
568 private _attemptCharCode(charCode: number): boolean {
569 if (this._cursor.peek() === charCode) {
570 this._cursor.advance();
571 return true;
572 }
573 return false;
574 }
575
576 private _attemptCharCodeCaseInsensitive(charCode: number): boolean {
577 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