(token: CommentStartToken)
| 178 | } |
| 179 | |
| 180 | private _consumeComment(token: CommentStartToken) { |
| 181 | const text = this._advanceIf(TokenType.RAW_TEXT); |
| 182 | const endToken = this._advanceIf(TokenType.COMMENT_END); |
| 183 | const value = text != null ? text.parts[0].trim() : null; |
| 184 | const sourceSpan = |
| 185 | endToken == null |
| 186 | ? token.sourceSpan |
| 187 | : new ParseSourceSpan( |
| 188 | token.sourceSpan.start, |
| 189 | endToken.sourceSpan.end, |
| 190 | token.sourceSpan.fullStart, |
| 191 | ); |
| 192 | this._addToParent(new html.Comment(value, sourceSpan)); |
| 193 | } |
| 194 | |
| 195 | private _consumeExpansion(token: ExpansionFormStartToken) { |
| 196 | const switchValue = this._advance<TextToken>(); |
no test coverage detected