(token: CommentStartToken)
| 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>(); |
no test coverage detected