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

Method _consumeComment

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

Source from the content-addressed store, hash-verified

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