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

Method _readChar

packages/compiler/src/ml_parser/lexer.ts:655–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

653 }
654
655 private _readChar(): string {
656 // Don't rely upon reading directly from `_input` as the actual char value
657 // may have been generated from an escape sequence.
658 const char = String.fromCodePoint(this._cursor.peek());
659 this._cursor.advance();
660 return char;
661 }
662
663 private _peekStr(chars: string): boolean {
664 const len = chars.length;

Callers 2

_consumeRawTextMethod · 0.95

Calls 2

peekMethod · 0.65
advanceMethod · 0.65

Tested by

no test coverage detected