MCPcopy
hub / github.com/angular/angular / _consumeComment

Method _consumeComment

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

Source from the content-addressed store, hash-verified

757 }
758
759 private _consumeComment(start: CharacterCursor) {
760 this._beginToken(TokenType.COMMENT_START, start);
761 this._requireCharCode(chars.$MINUS);
762 this._endToken([]);
763 this._consumeRawText(false, () => this._attemptStr('-->'));
764 this._beginToken(TokenType.COMMENT_END);
765 this._requireStr('-->');
766 this._endToken([]);
767 }
768
769 private _consumeCdata(start: CharacterCursor) {
770 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