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

Method _beginToken

packages/compiler/src/ml_parser/lexer.ts:497–500  ·  view source on GitHub ↗
(type: TokenType, start = this._cursor.clone())

Source from the content-addressed store, hash-verified

495 }
496
497 private _beginToken(type: TokenType, start = this._cursor.clone()) {
498 this._currentTokenStart = start;
499 this._currentTokenType = type;
500 }
501
502 private _endToken(parts: string[], end?: CharacterCursor): Token {
503 if (this._currentTokenStart === null) {

Callers 15

tokenizeMethod · 0.95
_consumeBlockStartMethod · 0.95
_consumeBlockEndMethod · 0.95
_consumeEntityMethod · 0.95
_consumeRawTextMethod · 0.95
_consumeCommentMethod · 0.95
_consumeCdataMethod · 0.95
_consumeDocTypeMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by

no test coverage detected