feat(i18n): implement a simple version of message extractor

Closes #7454
This commit is contained in:
vsavkin
2016-03-14 10:51:23 -07:00
committed by Victor Savkin
parent 70d18b5b53
commit 095db673c5
3 changed files with 424 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class TreeBuilder {
var text = this._advanceIf(HtmlTokenType.RAW_TEXT);
this._advanceIf(HtmlTokenType.COMMENT_END);
var value = isPresent(text) ? text.parts[0].trim() : null;
this._addToParent(new HtmlCommentAst(value, token.sourceSpan))
this._addToParent(new HtmlCommentAst(value, token.sourceSpan));
}
private _consumeText(token: HtmlToken) {