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

Method _consumeComment

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

Source from the content-addressed store, hash-verified

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