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

Method _readChar

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

Source from the content-addressed store, hash-verified

668 }
669
670 private _readChar(): string {
671 // Don't rely upon reading directly from `_input` as the actual char value
672 // may have been generated from an escape sequence.
673 const char = String.fromCodePoint(this._cursor.peek());
674 this._cursor.advance();
675 return char;
676 }
677
678 private _peekStr(chars: string): boolean {
679 const len = chars.length;

Callers 2

_consumeRawTextMethod · 0.95

Calls 2

peekMethod · 0.65
advanceMethod · 0.65

Tested by

no test coverage detected