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

Method _peekStr

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

Source from the content-addressed store, hash-verified

659 }
660
661 private _peekStr(chars: string): boolean {
662 const len = chars.length;
663 if (this._cursor.charsLeft() < len) {
664 return false;
665 }
666 const cursor = this._cursor.clone();
667 for (let i = 0; i < len; i++) {
668 if (cursor.peek() !== chars.charCodeAt(i)) {
669 return false;
670 }
671 cursor.advance();
672 }
673 return true;
674 }
675
676 private _isBlockStart(): boolean {
677 return (

Callers 2

_isBlockStartMethod · 0.95
_isLetStartMethod · 0.95

Calls 4

charsLeftMethod · 0.65
cloneMethod · 0.65
peekMethod · 0.65
advanceMethod · 0.65

Tested by

no test coverage detected