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

Method _consumeComment

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

Source from the content-addressed store, hash-verified

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