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

Method _advance

packages/compiler/src/ml_parser/parser.ts:158–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 }
157
158 private _advance<T extends Token>(): T {
159 const prev = this._peek;
160 if (this._index < this.tokens.length - 1) {
161 // Note: there is always an EOF token at the end
162 this._index++;
163 }
164 this._peek = this.tokens[this._index];
165 return prev as T;
166 }
167
168 private _advanceIf<T extends TokenType>(type: T): (Token & {type: T}) | null {
169 if (this._peek.type === type) {

Callers 14

constructorMethod · 0.95
buildMethod · 0.95
_advanceIfMethod · 0.95
_consumeCdataMethod · 0.95
_consumeExpansionMethod · 0.95
_parseExpansionCaseMethod · 0.95
_consumeTextMethod · 0.95
_consumeAttributesMethod · 0.95
_consumeAttrMethod · 0.95
_consumeBlockOpenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected