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

Method _readChar

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

Source from the content-addressed store, hash-verified

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

Callers 2

_consumeRawTextMethod · 0.95

Calls 2

peekMethod · 0.65
advanceMethod · 0.65

Tested by

no test coverage detected