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

Method _advance

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

Source from the content-addressed store, hash-verified

167 }
168
169 private _advance<T extends Token>(): T {
170 const prev = this._peek;
171 if (this._index < this.tokens.length - 1) {
172 // Note: there is always an EOF token at the end
173 this._index++;
174 }
175 this._peek = this.tokens[this._index];
176 return prev as T;
177 }
178
179 private _advanceIf<T extends TokenType>(type: T): (Token & {type: T}) | null {
180 if (this._peek.type === type) {

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected