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

Method _beginToken

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

Source from the content-addressed store, hash-verified

507 }
508
509 private _beginToken(type: TokenType, start = this._cursor.clone()) {
510 this._currentTokenStart = start;
511 this._currentTokenType = type;
512 }
513
514 private _endToken(parts: string[], end?: CharacterCursor): Token {
515 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