@@ -3648,6 +3648,12 @@ return /******/ (function(modules) { // webpackBootstrap
36483648 };
36493649 StringMapWrapper.set = function (map, key, value) { map[key] = value; };
36503650 StringMapWrapper.keys = function (map) { return Object.keys(map); };
3651+ StringMapWrapper.values = function (map) {
3652+ return Object.keys(map).reduce(function (r, a) {
3653+ r.push(map[a]);
3654+ return r;
3655+ }, []);
3656+ };
36513657 StringMapWrapper.isEmpty = function (map) {
36523658 for (var prop in map) {
36533659 return false;
@@ -26424,6 +26430,7 @@ return /******/ (function(modules) { // webpackBootstrap
2642426430 TemplateParseVisitor.prototype.visitAttr = function (ast, contex) {
2642526431 return new template_ast_1.AttrAst(ast.name, ast.value, ast.sourceSpan);
2642626432 };
26433+ TemplateParseVisitor.prototype.visitComment = function (ast, context) { return null; };
2642726434 TemplateParseVisitor.prototype.visitElement = function (element, component) {
2642826435 var _this = this;
2642926436 var nodeName = element.name;
@@ -26806,6 +26813,7 @@ return /******/ (function(modules) { // webpackBootstrap
2680626813 var children = html_ast_1.htmlVisitAll(this, ast.children, EMPTY_COMPONENT);
2680726814 return new template_ast_1.ElementAst(ast.name, html_ast_1.htmlVisitAll(this, ast.attrs), [], [], [], [], children, ngContentIndex, ast.sourceSpan);
2680826815 };
26816+ NonBindableVisitor.prototype.visitComment = function (ast, context) { return null; };
2680926817 NonBindableVisitor.prototype.visitAttr = function (ast, context) {
2681026818 return new template_ast_1.AttrAst(ast.name, ast.value, ast.sourceSpan);
2681126819 };
@@ -27015,9 +27023,11 @@ return /******/ (function(modules) { // webpackBootstrap
2701527023 this._consumeText(this._advance());
2701627024 this._advanceIf(html_lexer_1.HtmlTokenType.CDATA_END);
2701727025 };
27018- TreeBuilder.prototype._consumeComment = function (startToken ) {
27019- this._advanceIf(html_lexer_1.HtmlTokenType.RAW_TEXT);
27026+ TreeBuilder.prototype._consumeComment = function (token ) {
27027+ var text = this._advanceIf(html_lexer_1.HtmlTokenType.RAW_TEXT);
2702027028 this._advanceIf(html_lexer_1.HtmlTokenType.COMMENT_END);
27029+ var value = lang_1.isPresent(text) ? text.parts[0].trim() : null;
27030+ this._addToParent(new html_ast_1.HtmlCommentAst(value, token.sourceSpan));
2702127031 };
2702227032 TreeBuilder.prototype._consumeText = function (token) {
2702327033 var text = token.parts[0];
@@ -27182,6 +27192,15 @@ return /******/ (function(modules) { // webpackBootstrap
2718227192 return HtmlElementAst;
2718327193 })();
2718427194 exports.HtmlElementAst = HtmlElementAst;
27195+ var HtmlCommentAst = (function () {
27196+ function HtmlCommentAst(value, sourceSpan) {
27197+ this.value = value;
27198+ this.sourceSpan = sourceSpan;
27199+ }
27200+ HtmlCommentAst.prototype.visit = function (visitor, context) { return visitor.visitComment(this, context); };
27201+ return HtmlCommentAst;
27202+ })();
27203+ exports.HtmlCommentAst = HtmlCommentAst;
2718527204 function htmlVisitAll(visitor, asts, context) {
2718627205 if (context === void 0) { context = null; }
2718727206 var result = [];
@@ -28468,6 +28487,7 @@ return /******/ (function(modules) { // webpackBootstrap
2846828487 }
2846928488 return null;
2847028489 };
28490+ TemplatePreparseVisitor.prototype.visitComment = function (ast, context) { return null; };
2847128491 TemplatePreparseVisitor.prototype.visitAttr = function (ast, context) { return null; };
2847228492 TemplatePreparseVisitor.prototype.visitText = function (ast, context) { return null; };
2847328493 return TemplatePreparseVisitor;
0 commit comments