MCPcopy Index your code
hub / github.com/angular/angular / _consumeComment

Method _consumeComment

packages/compiler/src/ml_parser/parser.ts:191–204  ·  view source on GitHub ↗
(token: CommentStartToken)

Source from the content-addressed store, hash-verified

189 }
190
191 private _consumeComment(token: CommentStartToken) {
192 const text = this._advanceIf(TokenType.RAW_TEXT);
193 const endToken = this._advanceIf(TokenType.COMMENT_END);
194 const value = text != null ? text.parts[0].trim() : null;
195 const sourceSpan =
196 endToken == null
197 ? token.sourceSpan
198 : new ParseSourceSpan(
199 token.sourceSpan.start,
200 endToken.sourceSpan.end,
201 token.sourceSpan.fullStart,
202 );
203 this._addToParent(new html.Comment(value, sourceSpan));
204 }
205
206 private _consumeExpansion(token: ExpansionFormStartToken) {
207 const switchValue = this._advance<TextToken>();

Callers 1

buildMethod · 0.95

Calls 2

_advanceIfMethod · 0.95
_addToParentMethod · 0.95

Tested by

no test coverage detected