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

Method _consumeComment

packages/compiler/src/ml_parser/lexer.ts:777–785  ·  view source on GitHub ↗
(start: CharacterCursor)

Source from the content-addressed store, hash-verified

775 }
776
777 private _consumeComment(start: CharacterCursor) {
778 this._beginToken(TokenType.COMMENT_START, start);
779 this._requireCharCode(chars.$MINUS);
780 this._endToken([]);
781 this._consumeRawText(false, () => this._attemptStr('-->'));
782 this._beginToken(TokenType.COMMENT_END);
783 this._requireStr('-->');
784 this._endToken([]);
785 }
786
787 private _consumeCdata(start: CharacterCursor) {
788 this._beginToken(TokenType.CDATA_START, start);

Callers 1

tokenizeMethod · 0.95

Calls 6

_beginTokenMethod · 0.95
_requireCharCodeMethod · 0.95
_endTokenMethod · 0.95
_consumeRawTextMethod · 0.95
_attemptStrMethod · 0.95
_requireStrMethod · 0.95

Tested by

no test coverage detected