@glimmer/syntax
Advanced tools
Comparing version 0.65.2 to 0.65.3
@@ -17,2 +17,3 @@ "use strict"; | ||
print: true, | ||
sortByLoc: true, | ||
SyntaxError: true, | ||
@@ -83,2 +84,8 @@ AST: true, | ||
}); | ||
Object.defineProperty(exports, "sortByLoc", { | ||
enumerable: true, | ||
get: function () { | ||
return _util.sortByLoc; | ||
} | ||
}); | ||
Object.defineProperty(exports, "SyntaxError", { | ||
@@ -131,2 +138,4 @@ enumerable: true, | ||
var _util = require("./lib/generation/util"); | ||
var _syntaxError = _interopRequireDefault(require("./lib/errors/syntax-error")); | ||
@@ -145,2 +154,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBOztBQVVBOztBQUNBOztBQU1BOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBOztBQUNBOztBQUNBOztBQUdBOztBQUdBOzs7O0FBRUEiLCJzb3VyY2VzQ29udGVudCI6WyIvLyB1c2VkIGJ5IGVtYmVyLWNvbXBpbGVyXG5leHBvcnQge1xuICBwcmVwcm9jZXNzLFxuICBQcmVwcm9jZXNzT3B0aW9ucyxcbiAgQVNUUGx1Z2luLFxuICBBU1RQbHVnaW5CdWlsZGVyLFxuICBBU1RQbHVnaW5FbnZpcm9ubW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lT3JSZW1vdmVJbktleUhhbmRsZXJZZXQsXG59IGZyb20gJy4vbGliL3RyYXZlcnNhbC9lcnJvcnMnO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyB0cmF2ZXJzZSB9IGZyb20gJy4vbGliL3RyYXZlcnNhbC90cmF2ZXJzZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90cmF2ZXJzYWwvdmlzaXRvcic7XG5leHBvcnQgeyBkZWZhdWx0IGFzIFBhdGggfSBmcm9tICcuL2xpYi90cmF2ZXJzYWwvcGF0aCc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIFdhbGtlciB9IGZyb20gJy4vbGliL3RyYXZlcnNhbC93YWxrZXInO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBwcmludCB9IGZyb20gJy4vbGliL2dlbmVyYXRpb24vcHJpbnQnO1xuZXhwb3J0IHsgc29ydEJ5TG9jIH0gZnJvbSAnLi9saWIvZ2VuZXJhdGlvbi91dGlsJztcblxuLy8gZXJyb3JzXG5leHBvcnQgeyBkZWZhdWx0IGFzIFN5bnRheEVycm9yIH0gZnJvbSAnLi9saWIvZXJyb3JzL3N5bnRheC1lcnJvcic7XG5cbi8vIEFTVFxuaW1wb3J0ICogYXMgQVNUIGZyb20gJy4vbGliL3R5cGVzL25vZGVzJztcbmV4cG9ydCB7IEFTVCB9O1xuZXhwb3J0IHsgaXNMaXRlcmFsLCBwcmludExpdGVyYWwgfSBmcm9tICcuL2xpYi91dGlscyc7XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -222,22 +222,20 @@ "use strict"; | ||
this.buffer += `<${el.tag}`; | ||
const parts = [...el.attributes, ...el.modifiers, ...el.comments].sort(_util.sortByLoc); | ||
if (el.attributes.length) { | ||
el.attributes.forEach(attr => { | ||
this.buffer += ' '; | ||
this.AttrNode(attr); | ||
}); | ||
} | ||
for (const part of parts) { | ||
this.buffer += ' '; | ||
if (el.modifiers.length) { | ||
el.modifiers.forEach(mod => { | ||
this.buffer += ' '; | ||
this.ElementModifierStatement(mod); | ||
}); | ||
} | ||
switch (part.type) { | ||
case 'AttrNode': | ||
this.AttrNode(part); | ||
break; | ||
if (el.comments.length) { | ||
el.comments.forEach(comment => { | ||
this.buffer += ' '; | ||
this.MustacheCommentStatement(comment); | ||
}); | ||
case 'ElementModifierStatement': | ||
this.ElementModifierStatement(part); | ||
break; | ||
case 'MustacheCommentStatement': | ||
this.MustacheCommentStatement(part); | ||
break; | ||
} | ||
} | ||
@@ -553,2 +551,2 @@ | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi9wcmludGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUE0QkE7O0FBQ0E7O0FBRUEsTUFBTSxjQUFjLEdBQXBCLElBQUE7O0FBc0JjLE1BQUEsT0FBQSxDQUFjO0FBSTFCLEVBQUEsV0FBQSxDQUFBLE9BQUEsRUFBbUM7QUFIM0IsU0FBQSxNQUFBLEdBQUEsRUFBQTtBQUlOLFNBQUEsT0FBQSxHQUFBLE9BQUE7QUFDRDtBQUVEOzs7Ozs7Ozs7O0FBU0EsRUFBQSxpQkFBaUIsQ0FBQSxJQUFBLEVBQWEsdUJBQXVCLEdBQXBDLEtBQUEsRUFBNEM7QUFDM0QsUUFBSSxLQUFBLE9BQUEsQ0FBQSxRQUFBLEtBQUosU0FBQSxFQUF5QztBQUN2QyxVQUFJLE1BQU0sR0FBRyxLQUFBLE9BQUEsQ0FBQSxRQUFBLENBQUEsSUFBQSxFQUE0QixLQUF6QyxPQUFhLENBQWI7O0FBQ0EsVUFBSSxPQUFBLE1BQUEsS0FBSixRQUFBLEVBQWdDO0FBQzlCLFlBQUksdUJBQXVCLElBQUksTUFBTSxLQUFqQyxFQUFBLElBQTRDLGNBQW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W50Tm9kZVR5cGV9YFxuICApO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -8,2 +8,4 @@ "use strict"; | ||
exports.escapeText = escapeText; | ||
exports.isSynthetic = isSynthetic; | ||
exports.sortByLoc = sortByLoc; | ||
const ATTR_VALUE_REGEX_TEST = /[\xA0"&]/; | ||
@@ -78,2 +80,31 @@ const ATTR_VALUE_REGEX_REPLACE = new RegExp(ATTR_VALUE_REGEX_TEST.source, 'g'); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFRQSxNQUFNLHFCQUFxQixHQUEzQixVQUFBO0FBQ0EsTUFBTSx3QkFBd0IsR0FBRyxJQUFBLE1BQUEsQ0FBVyxxQkFBcUIsQ0FBaEMsTUFBQSxFQUFqQyxHQUFpQyxDQUFqQztBQUVBLE1BQU0sZUFBZSxHQUFyQixXQUFBO0FBQ0EsTUFBTSxrQkFBa0IsR0FBRyxJQUFBLE1BQUEsQ0FBVyxlQUFlLENBQTFCLE1BQUEsRUFBM0IsR0FBMkIsQ0FBM0I7O0FBRUEsU0FBQSxpQkFBQSxDQUFBLElBQUEsRUFBdUM7QUFDckMsVUFBUSxJQUFJLENBQUosVUFBQSxDQUFSLENBQVEsQ0FBUjtBQUNFLFNBQUE7QUFBQTtBQUFBO0FBQ0UsYUFBQSxRQUFBOztBQUNGLFNBQUE7QUFBQTtBQUFBO0FBQ0UsYUFBQSxRQUFBOztBQUNGLFNBQUE7QUFBQTtBQUFBO0FBQ0UsYUFBQSxPQUFBOztBQUNGO0FBQ0UsYUFBQSxJQUFBO0FBUko7QUFVRDs7QUFFRCxTQUFBLFlBQUEsQ0FBQSxJQUFBLEVB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JWYWx1ZVJlcGxhY2VyKTtcbiAgfVxuICByZXR1cm4gYXR0clZhbHVlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZXNjYXBlVGV4dCh0ZXh0OiBzdHJpbmcpIHtcbiAgaWYgKFRFWFRfUkVHRVhfVEVTVC50ZXN0KHRleHQpKSB7XG4gICAgcmV0dXJuIHRleHQucmVwbGFjZShURVhUX1JFR0VYX1JFUExBQ0UsIHRleHRSZXBsYWNlcik7XG4gIH1cbiAgcmV0dXJuIHRleHQ7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 | ||
function isSynthetic(node) { | ||
if (node && node.loc) { | ||
return node.loc.source === '(synthetic)'; | ||
} | ||
return false; | ||
} | ||
function sortByLoc(a, b) { | ||
// be conservative about the location where a new node is inserted | ||
if (isSynthetic(a) || isSynthetic(b)) { | ||
return 0; | ||
} | ||
if (a.loc.start.line < b.loc.start.line) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column < b.loc.start.column) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column === b.loc.start.column) { | ||
return 0; | ||
} | ||
return 1; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQVVBLE1BQU0scUJBQXFCLEdBQTNCLFVBQUE7QUFDQSxNQUFNLHdCQUF3QixHQUFHLElBQUEsTUFBQSxDQUFXLHFCQUFxQixDQUFoQyxNQUFBLEVBQWpDLEdBQWlDLENBQWpDO0FBRUEsTUFBTSxlQUFlLEdBQXJCLFdBQUE7QUFDQSxNQUFNLGtCQUFrQixHQUFHLElBQUEsTUFBQSxDQUFXLGVBQWUsQ0FBMUIs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ZhdGl2ZSBhYm91dCB0aGUgbG9jYXRpb24gd2hlcmUgYSBuZXcgbm9kZSBpcyBpbnNlcnRlZFxuICBpZiAoaXNTeW50aGV0aWMoYSkgfHwgaXNTeW50aGV0aWMoYikpIHtcbiAgICByZXR1cm4gMDtcbiAgfVxuXG4gIGlmIChhLmxvYy5zdGFydC5saW5lIDwgYi5sb2Muc3RhcnQubGluZSkge1xuICAgIHJldHVybiAtMTtcbiAgfVxuXG4gIGlmIChhLmxvYy5zdGFydC5saW5lID09PSBiLmxvYy5zdGFydC5saW5lICYmIGEubG9jLnN0YXJ0LmNvbHVtbiA8IGIubG9jLnN0YXJ0LmNvbHVtbikge1xuICAgIHJldHVybiAtMTtcbiAgfVxuXG4gIGlmIChhLmxvYy5zdGFydC5saW5lID09PSBiLmxvYy5zdGFydC5saW5lICYmIGEubG9jLnN0YXJ0LmNvbHVtbiA9PT0gYi5sb2Muc3RhcnQuY29sdW1uKSB7XG4gICAgcmV0dXJuIDA7XG4gIH1cblxuICByZXR1cm4gMTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= |
@@ -222,2 +222,5 @@ "use strict"; | ||
: | ||
case "afterAttributeName" | ||
/* afterAttributeName */ | ||
: | ||
this.currentStartTag.comments.push(comment); | ||
@@ -438,2 +441,2 @@ break; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvcGFyc2VyL2hhbmRsZWJhcnMtbm9kZS12aXNpdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7O0FBR0E7O0FBQ0E7Ozs7QUFLTSxNQUFBLHNCQUFBLFNBQUEsY0FBQSxDQUFxRDtBQUt6RCxNQUFBLFVBQUEsR0FBc0I7QUFDcEIsV0FBTyxLQUFBLFlBQUEsQ0F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Wx9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfS5gLFxuICAgICAgICAgIHBhdGgubG9jXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBpZiAob3JpZ2luYWwuc2xpY2UoMCwgMykgPT09ICcuLi8nKSB7XG4gICAgICAgIHRocm93IG5ldyBTeW50YXhFcnJvcihcbiAgICAgICAgICBgQ2hhbmdpbmcgY29udGV4dCB1c2luZyBcIi4uL1wiIGlzIG5vdCBzdXBwb3J0ZWQgaW4gR2xpbW1lcjogXCIke3BhdGgub3JpZ2luYWx9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfS5gLFxuICAgICAgICAgIHBhdGgubG9jXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBpZiAob3JpZ2luYWwuaW5kZXhPZignLicpICE9PSAtMSkge1xuICAgICAgICB0aHJvdyBuZXcgU3ludGF4RXJyb3IoXG4gICAgICAgICAgYE1peGluZyAnLicgYW5kICcvJyBpbiBwYXRocyBpcyBub3Qgc3VwcG9ydGVkIGluIEdsaW1tZXI7IHVzZSBvbmx5ICcuJyB0byBzZXBhcmF0ZSBwcm9wZXJ0eSBwYXRoczogXCIke3BhdGgub3JpZ2luYWx9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfS5gLFxuICAgICAgICAgIHBhdGgubG9jXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBwYXJ0cyA9IFtwYXRoLnBhcnRzLmpvaW4oJy8nKV07XG4gICAgfSBlbHNlIGlmIChvcmlnaW5hbCA9PT0gJy4nKSB7XG4gICAgICBsZXQgbG9jYXRpb25JbmZvID0gYEwke2xvYy5zdGFydC5saW5lfTpDJHtsb2Muc3RhcnQuY29sdW1ufWA7XG4gICAgICB0aHJvdyBuZXcgU3ludGF4RXJyb3IoXG4gICAgICAgIGAnLicgaXMgbm90IGEgc3VwcG9ydGVkIHBhdGggaW4gR2xpbW1lcjsgY2hlY2sgZm9yIGEgcGF0aCB3aXRoIGEgdHJhaWxpb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ciA9IGIuZWxlbWVudE1vZGlmaWVyKHBhdGgsIHBhcmFtcywgaGFzaCwgbG9jKTtcbiAgZWxlbWVudC5tb2RpZmllcnMucHVzaChtb2RpZmllcik7XG59XG5cbmZ1bmN0aW9uIGFwcGVuZER5bmFtaWNBdHRyaWJ1dGVWYWx1ZVBhcnQoYXR0cmlidXRlOiBBdHRyaWJ1dGUsIHBhcnQ6IEFTVC5NdXN0YWNoZVN0YXRlbWVudCkge1xuICBhdHRyaWJ1dGUuaXNEeW5hbWljID0gdHJ1ZTtcbiAgYXR0cmlidXRlLnBhcnRzLnB1c2gocGFydCk7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -17,2 +17,3 @@ "use strict"; | ||
print: true, | ||
sortByLoc: true, | ||
SyntaxError: true, | ||
@@ -83,2 +84,8 @@ AST: true, | ||
}); | ||
Object.defineProperty(exports, "sortByLoc", { | ||
enumerable: true, | ||
get: function () { | ||
return _util.sortByLoc; | ||
} | ||
}); | ||
Object.defineProperty(exports, "SyntaxError", { | ||
@@ -131,2 +138,4 @@ enumerable: true, | ||
var _util = require("./lib/generation/util"); | ||
var _syntaxError = _interopRequireDefault(require("./lib/errors/syntax-error")); | ||
@@ -145,2 +154,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBOztBQVVBOztBQUNBOztBQU1BO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XRlcmFsLCBwcmludExpdGVyYWwgfSBmcm9tICcuL2xpYi91dGlscyc7XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -12,2 +12,46 @@ "use strict"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it; | ||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { | ||
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
var i = 0; | ||
return function () { | ||
if (i >= o.length) return { | ||
done: true | ||
}; | ||
return { | ||
done: false, | ||
value: o[i++] | ||
}; | ||
}; | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
it = o[Symbol.iterator](); | ||
return it.next.bind(it); | ||
} | ||
function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) return; | ||
if (typeof o === "string") return _arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) n = o.constructor.name; | ||
if (n === "Map" || n === "Set") return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); | ||
} | ||
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) { | ||
arr2[i] = arr[i]; | ||
} | ||
return arr2; | ||
} | ||
var NON_WHITESPACE = /\S/; | ||
@@ -232,30 +276,24 @@ | ||
_proto.OpenElementNode = function OpenElementNode(el) { | ||
var _this2 = this; | ||
this.buffer += "<" + el.tag; | ||
var parts = [].concat(el.attributes, el.modifiers, el.comments).sort(_util.sortByLoc); | ||
if (el.attributes.length) { | ||
el.attributes.forEach(function (attr) { | ||
_this2.buffer += ' '; | ||
for (var _iterator = _createForOfIteratorHelperLoose(parts), _step; !(_step = _iterator()).done;) { | ||
var part = _step.value; | ||
this.buffer += ' '; | ||
_this2.AttrNode(attr); | ||
}); | ||
} | ||
switch (part.type) { | ||
case 'AttrNode': | ||
this.AttrNode(part); | ||
break; | ||
if (el.modifiers.length) { | ||
el.modifiers.forEach(function (mod) { | ||
_this2.buffer += ' '; | ||
case 'ElementModifierStatement': | ||
this.ElementModifierStatement(part); | ||
break; | ||
_this2.ElementModifierStatement(mod); | ||
}); | ||
case 'MustacheCommentStatement': | ||
this.MustacheCommentStatement(part); | ||
break; | ||
} | ||
} | ||
if (el.comments.length) { | ||
el.comments.forEach(function (comment) { | ||
_this2.buffer += ' '; | ||
_this2.MustacheCommentStatement(comment); | ||
}); | ||
} | ||
if (el.blockParams.length) { | ||
@@ -403,3 +441,3 @@ this.BlockParams(el.blockParams); | ||
_proto.ConcatStatement = function ConcatStatement(concat) { | ||
var _this3 = this; | ||
var _this2 = this; | ||
@@ -413,5 +451,5 @@ if (this.handledByOverride(concat)) { | ||
if (part.type === 'TextNode') { | ||
_this3.TextNode(part, true); | ||
_this2.TextNode(part, true); | ||
} else { | ||
_this3.Node(part); | ||
_this2.Node(part); | ||
} | ||
@@ -471,3 +509,3 @@ }); | ||
_proto.Params = function Params(params) { | ||
var _this4 = this; // TODO: implement a top level Params AST node (just like the Hash object) | ||
var _this3 = this; // TODO: implement a top level Params AST node (just like the Hash object) | ||
// so that this can also be overridden | ||
@@ -478,5 +516,5 @@ | ||
params.forEach(function (param) { | ||
_this4.buffer += ' '; | ||
_this3.buffer += ' '; | ||
_this4.Expression(param); | ||
_this3.Expression(param); | ||
}); | ||
@@ -487,3 +525,3 @@ } | ||
_proto.Hash = function Hash(hash) { | ||
var _this5 = this; | ||
var _this4 = this; | ||
@@ -495,5 +533,5 @@ if (this.handledByOverride(hash, true)) { | ||
hash.pairs.forEach(function (pair) { | ||
_this5.buffer += ' '; | ||
_this4.buffer += ' '; | ||
_this5.HashPair(pair); | ||
_this4.HashPair(pair); | ||
}); | ||
@@ -578,2 +616,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IChub2RlIGFzIGFueSkgYXMgTm9kZTtcbiAgdGhyb3cgbmV3IEVycm9yKFxuICAgIGBOb24tZXhoYXVzdGl2ZSBub2RlIG5hcnJvd2luZyAke3R5cGV9IEAgbG9jYXRpb246ICR7SlNPTi5zdHJpbmdpZnkoXG4gICAgICBsb2NcbiAgICApfSBmb3IgcGFyZW50ICR7cGFyZW50Tm9kZVR5cGV9YFxuICApO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -8,2 +8,4 @@ "use strict"; | ||
exports.escapeText = escapeText; | ||
exports.isSynthetic = isSynthetic; | ||
exports.sortByLoc = sortByLoc; | ||
var ATTR_VALUE_REGEX_TEST = /[\xA0"&]/; | ||
@@ -78,2 +80,31 @@ var ATTR_VALUE_REGEX_REPLACE = new RegExp(ATTR_VALUE_REGEX_TEST.source, 'g'); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFRQSxJQUFNLHFCQUFxQixHQUEzQixVQUFBO0FBQ0EsSUFBTSx3QkFBd0IsR0FBRyxJQUFBLE1BQUEsQ0FBVyxxQkFBcUIsQ0FBaEMsTUFBQSxFQUFqQyxHQUFpQyxDQUFqQztBQUVBLElBQU0sZUFBZSxHQUFyQixXQUFBO0FBQ0EsSUFBTSxrQkFBa0IsR0FBRyxJQUFBLE1BQUEsQ0FBVyxlQUFlLENBQTFCLE1BQUEsRUFBM0IsR0FBMkIsQ0FBM0I7O0FBRUEsU0FBQSxpQkFBQSxDQUFBLEtBQUEsRUFBdUM7QUFDckMsVUFBUSxLQUFJLENBQUosVUFBQSxDQUFSLENBQVEsQ0FBUjtBQUNFLFNBQUE7QUFBQTtBQUFBO0FBQ0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bmN0aW9uIGVzY2FwZUF0dHJWYWx1ZShhdHRyVmFsdWU6IHN0cmluZykge1xuICBpZiAoQVRUUl9WQUxVRV9SRUdFWF9URVNULnRlc3QoYXR0clZhbHVlKSkge1xuICAgIHJldHVybiBhdHRyVmFsdWUucmVwbGFjZShBVFRSX1ZBTFVFX1JFR0VYX1JFUExBQ0UsIGF0dHJWYWx1ZVJlcGxhY2VyKTtcbiAgfVxuICByZXR1cm4gYXR0clZhbHVlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZXNjYXBlVGV4dCh0ZXh0OiBzdHJpbmcpIHtcbiAgaWYgKFRFWFRfUkVHRVhfVEVTVC50ZXN0KHRleHQpKSB7XG4gICAgcmV0dXJuIHRleHQucmVwbGFjZShURVhUX1JFR0VYX1JFUExBQ0UsIHRleHRSZXBsYWNlcik7XG4gIH1cbiAgcmV0dXJuIHRleHQ7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 | ||
function isSynthetic(node) { | ||
if (node && node.loc) { | ||
return node.loc.source === '(synthetic)'; | ||
} | ||
return false; | ||
} | ||
function sortByLoc(a, b) { | ||
// be conservative about the location where a new node is inserted | ||
if (isSynthetic(a) || isSynthetic(b)) { | ||
return 0; | ||
} | ||
if (a.loc.start.line < b.loc.start.line) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column < b.loc.start.column) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column === b.loc.start.column) { | ||
return 0; | ||
} | ||
return 1; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQVVBLElBQU0scUJBQXFCLEdBQTNCLFVBQUE7QU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HJldHVybiBub2RlLmxvYy5zb3VyY2UgPT09ICcoc3ludGhldGljKSc7XG4gIH1cblxuICByZXR1cm4gZmFsc2U7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBzb3J0QnlMb2MoYTogQVNULk5vZGUsIGI6IEFTVC5Ob2RlKTogLTEgfCAwIHwgMSB7XG4gIC8vIGJlIGNvbnNlcnZhdGl2ZSBhYm91dCB0aGUgbG9jYXRpb24gd2hlcmUgYSBuZXcgbm9kZSBpcyBpbnNlcnRlZFxuICBpZiAoaXNTeW50aGV0aWMoYSkgfHwgaXNTeW50aGV0aWMoYikpIHtcbiAgICByZXR1cm4gMDtcbiAgfVxuXG4gIGlmIChhLmxvYy5zdGFydC5saW5lIDwgYi5sb2Muc3RhcnQubGluZSkge1xuICAgIHJldHVybiAtMTtcbiAgfVxuXG4gIGlmIChhLmxvYy5zdGFydC5saW5lID09PSBiLmxvYy5zdGFydC5saW5lICYmIGEubG9jLnN0YXJ0LmNvbHVtbiA8IGIubG9jLnN0YXJ0LmNvbHVtbikge1xuICAgIHJldHVybiAtMTtcbiAgfVxuXG4gIGlmIChhLmxvYy5zdGFydC5saW5lID09PSBiLmxvYy5zdGFydC5saW5lICYmIGEubG9jLnN0YXJ0LmNvbHVtbiA9PT0gYi5sb2Muc3RhcnQuY29sdW1uKSB7XG4gICAgcmV0dXJuIDA7XG4gIH1cblxuICByZXR1cm4gMTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= |
@@ -240,2 +240,5 @@ "use strict"; | ||
: | ||
case "afterAttributeName" | ||
/* afterAttributeName */ | ||
: | ||
this.currentStartTag.comments.push(comment); | ||
@@ -455,2 +458,2 @@ break; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvcGFyc2VyL2hhbmRsZWJhcnMtbm9kZS12aXNpdG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Aob24gbGluZSAnICsgZWxlbWVudE5vZGUubG9jIS5zdGFydC5saW5lICsgJykuJyxcbiAgICAgICAgZWxlbWVudE5vZGUubG9jXG4gICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiBub2RlO1xuICB9XG5cbiAgQmxvY2tTdGF0ZW1lbnQoYmxvY2s6IEhCUy5CbG9ja1N0YXRlbWVudCk6IEFTVC5CbG9ja1N0YXRlbWVudCB8IHZvaWQge1xuICAgIGlmICh0aGlzLnRva2VuaXplci5zdGF0ZSA9PT0gVG9rZW5pemVyU3RhdGUuY29tbWVudCkge1xuICAgICAgdGhpcy5hcHBlbmRUb0NvbW1lbnREYXRhKHRoaXMuc291cmNlRm9yTm9kZShibG9jaykpO1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGlmIChcbiAgICAgIHRoaXMudG9rZW5pemVyLnN0YXRlICE9PSBUb2tlbml6ZXJTdGF0ZS5kYXRhICYmXG4gICAgICB0aGlzLnRva2VuaXplclsnc3RhdGUnXSAhPT0gVG9rZW5pemVyU3RhdGUuYmVmb3JlRGF0YVxuICAgICkge1xuICAgICAgdGhyb3cgbmV3IFN5bnRheEVycm9yKFxuICAgICAgICAnQSBibG9jayBtYXkgb25seSBiZSB1c2VkIGluc2lkZSBhbiBIVE1MIGVsZW1lbnQgb3IgYW5vdGhlciBibG9jay4nLFxuICAgICAgICBibG9jay5sb2NcbiAgICAgICk7XG4gICAgfVxuXG4gICAgbGV0IHsgcGF0aCwgcGFyYW1zLCBoYXNoIH0gPSBhY2NlcHRDYWxsTm9kZXModGhpcywgYmxvY2spO1xuICAgIGxldCBwcm9ncmFtID0gdGhpcy5Qcm9ncmFtKGJsb2NrLnByb2dyYW0pO1xuICAgIGxldCBpbnZlcnNlID0gYmxvY2suaW52ZXJzZSA/IHRoaXMuUHJvZ3JhbShibG9jay5pbnZlcnNlKSA6IG51bGw7XG5cbiAgICBsZXQgbm9kZSA9IGIuYmxvY2soXG4gICAgICBwYXRoLFxuICAgICA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5pemVyU3RhdGUuY29tbWVudCkge1xuICAgICAgdGhpcy5hcHBlbmRUb0NvbW1lbnREYXRhKHRoaXMuc291cmNlRm9yTm9kZShyYXdDb21tZW50KSk7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICBsZXQgeyB2YWx1ZSwgbG9jIH0gPSByYXdDb21tZW50O1xuICAgIGxldCBjb21tZW50ID0gYi5tdXN0YWNoZUNvbW1lbnQodmFsdWUsIGxvYyk7XG5cbiAgICBzd2l0Y2ggKHRva2VuaXplci5zdGF0ZSkge1xuICAgICAgY2FzZSBUb2tlbml6ZXJTdGF0ZS5iZWZvcmVBdHRyaWJ1dGVOYW1lOlxuICAgICAgICB0aGlzLmN1cnJlbnRTdGFydFRhZy5jb21tZW50cy5wdXNoKGNvbW1lbnQpO1xuICAgICAgICBicmVhaztcblxuICAgICAgY2FzZSBUb2tlbml6ZXJTdGF0ZS5iZWZvcmVEYXRhOlxuICAgICAgY2FzZSBUb2tlbml6ZXJTdGF0ZS5kYXRhOlxuICAgICAgICBhcHBlbmRDaGlsZCh0aGlzLmN1cnJlbnRFbGVtZW50KCksIGNvbW1lbnQpO1xuICAgICAgICBicmVhaztcblxuICAgICAgZGVmYXVsdDpcbiAgICAgICAgdGhyb3cgbmV3IFN5bnRheEVycm9yKFxuICAgICAgICAgIGBVc2luZyBhIEhhbmRsZWJhcnMgY29tbWVudCB3aGVuIGluIHRoZSBcXGAke3Rva2VuaXplclsnc3RhdGUnXX1cXGAgc3RhdGUgaXMgbm90IHN1cHBvcnRlZDogXCIke2NvbW1lbnQudmFsdWV9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfToke2xvYy5zdGFydC5jb2x1bW59YCxcbiAgICAgICAgICByYXdDb21tZW50LmxvY1xuICAgICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiBjb21tZW50O1xuICB9XG5cbiAgUGFydGlhbFN0YXRlbWVudChwYXJ0aWFsOiBIQlMuUGFydGlhbFN0YXRlbWVud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W9kaWZpZXJ9IC4uLmA7XG5cbiAgICB0aHJvdyBuZXcgU3ludGF4RXJyb3IoXG4gICAgICBgSW4gJHt0YWd9LCAke21vZGlmaWVyfSBpcyBub3QgYSB2YWxpZCBtb2RpZmllcjogXCIke3BhdGgub3JpZ2luYWx9XCIgb24gbGluZSAke1xuICAgICAgICBsb2MgJiYgbG9jLnN0YXJ0LmxpbmVcbiAgICAgIH0uYCxcbiAgICAgIG11c3RhY2hlLmxvY1xuICAgICk7XG4gIH1cblxuICBsZXQgbW9kaWZpZXIgPSBiLmVsZW1lbnRNb2RpZmllcihwYXRoLCBwYXJhbXMsIGhhc2gsIGxvYyk7XG4gIGVsZW1lbnQubW9kaWZpZXJzLnB1c2gobW9kaWZpZXIpO1xufVxuXG5mdW5jdGlvbiBhcHBlbmREeW5hbWljQXR0cmlidXRlVmFsdWVQYXJ0KGF0dHJpYnV0ZTogQXR0cmlidXRlLCBwYXJ0OiBBU1QuTXVzdGFjaGVTdGF0ZW1lbnQpIHtcbiAgYXR0cmlidXRlLmlzRHluYW1pYyA9IHRydWU7XG4gIGF0dHJpYnV0ZS5wYXJ0cy5wdXNoKHBhcnQpO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -10,3 +10,4 @@ // used by ember-compiler | ||
export { default as Walker } from './lib/traversal/walker'; | ||
export { default as print } from './lib/generation/print'; // errors | ||
export { default as print } from './lib/generation/print'; | ||
export { sortByLoc } from './lib/generation/util'; // errors | ||
@@ -18,2 +19,2 @@ export { default as SyntaxError } from './lib/errors/syntax-error'; // AST | ||
export { isLiteral, printLiteral } from './lib/utils'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBLFNBQ0UsVUFERixRQU9PLHVDQVBQLE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sXG4gIGNhbm5vdFJlcGxhY2VPclJlbW92ZUluS2V5SGFuZGxlcllldCxcbn0gZnJvbSAnLi9saWIvdHJhdmVyc2FsL2Vycm9ycyc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIHRyYXZlcnNlIH0gZnJvbSAnLi9saWIvdHJhdmVyc2FsL3RyYXZlcnNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3RyYXZlcnNhbC92aXNpdG9yJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgUGF0aCB9IGZyb20gJy4vbGliL3RyYXZlcnNhbC9wYXRoJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgV2Fsa2VyIH0gZnJvbSAnLi9saWIvdHJhdmVyc2FsL3dhbGtlcic7XG5leHBvcnQgeyBkZWZhdWx0IGFzIHByaW50IH0gZnJvbSAnLi9saWIvZ2VuZXJhdGlvbi9wcmludCc7XG5leHBvcnQgeyBzb3J0QnlMb2MgfSBmcm9tICcuL2xpYi9nZW5lcmF0aW9uL3V0aWwnO1xuXG4vLyBlcnJvcnNcbmV4cG9ydCB7IGRlZmF1bHQgYXMgU3ludGF4RXJyb3IgfSBmcm9tICcuL2xpYi9lcnJvcnMvc3ludGF4LWVycm9yJztcblxuLy8gQVNUXG5pbXBvcnQgKiBhcyBBU1QgZnJvbSAnLi9saWIvdHlwZXMvbm9kZXMnO1xuZXhwb3J0IHsgQVNUIH07XG5leHBvcnQgeyBpc0xpdGVyYWwsIHByaW50TGl0ZXJhbCB9IGZyb20gJy4vbGliL3V0aWxzJztcbiJdLCJzb3VyY2VSb290IjoiIn0= |
import { voidMap } from '../parser/tokenizer-event-handlers'; | ||
import { escapeText, escapeAttrValue } from './util'; | ||
import { escapeText, escapeAttrValue, sortByLoc } from './util'; | ||
const NON_WHITESPACE = /\S/; | ||
@@ -212,22 +212,20 @@ export default class Printer { | ||
this.buffer += `<${el.tag}`; | ||
const parts = [...el.attributes, ...el.modifiers, ...el.comments].sort(sortByLoc); | ||
if (el.attributes.length) { | ||
el.attributes.forEach(attr => { | ||
this.buffer += ' '; | ||
this.AttrNode(attr); | ||
}); | ||
} | ||
for (const part of parts) { | ||
this.buffer += ' '; | ||
if (el.modifiers.length) { | ||
el.modifiers.forEach(mod => { | ||
this.buffer += ' '; | ||
this.ElementModifierStatement(mod); | ||
}); | ||
} | ||
switch (part.type) { | ||
case 'AttrNode': | ||
this.AttrNode(part); | ||
break; | ||
if (el.comments.length) { | ||
el.comments.forEach(comment => { | ||
this.buffer += ' '; | ||
this.MustacheCommentStatement(comment); | ||
}); | ||
case 'ElementModifierStatement': | ||
this.ElementModifierStatement(part); | ||
break; | ||
case 'MustacheCommentStatement': | ||
this.MustacheCommentStatement(part); | ||
break; | ||
} | ||
} | ||
@@ -541,2 +539,2 @@ | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi9wcmludGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTRCQSxTQUFTLE9BQVQsUUFBd0Isb0NBQXhCO0FBQ0EsU0FBUyxVQUFULEVBQXFCLGVBQXJCLFFBQTRDLFFBQTVDO0FBRUEsTUFBTSxjQUFjLEdBQUcsSUFBdkI7QUFzQkEsZUFBYyxNQUFPLE9BQVAsQ0FBYztBQUkxQixFQUFBLFdBQUEsQ0FBWSxPQUFaLEVBQW1DO0FBSDNCLFNBQUEsTUFBQSxHQUFTLEVBQVQ7QUFJTixTQUFLLE9BQUwsR0FBZSxPQUFmO0FBQ0Q7QUFFRDs7Ozs7Ozs7OztBQVNBLEVBQUEsaUJBQWlCLENBQUMsSUFBRCxFQUFhLHVCQUF1QixHQUFHLEtBQXZDLEVBQTRDO0FBQzNELFFBQUksS0FBSyxPQUFMLENBQWEsUUFBYixLQUEwQixTQUE5QixFQUF5QztBQUN2Qy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HJlc3VsdCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICB9XG4gICAgfVxuXG4gICAgdGhpcy5idWZmZXIgPSAnJztcbiAgICB0aGlzLk5vZGUobm9kZSk7XG4gICAgcmV0dXJuIHRoaXMuYnVmZmVyO1xuICB9XG59XG5cbmZ1bmN0aW9uIHVucmVhY2hhYmxlKG5vZGU6IG5ldmVyLCBwYXJlbnROb2RlVHlwZTogc3RyaW5nKTogbmV2ZXIge1xuICBsZXQgeyBsb2MsIHR5cGUgfSA9IChub2RlIGFzIGFueSkgYXMgTm9kZTtcbiAgdGhyb3cgbmV3IEVycm9yKFxuICAgIGBOb24tZXhoYXVzdGl2ZSBub2RlIG5hcnJvd2luZyAke3R5cGV9IEAgbG9jYXRpb246ICR7SlNPTi5zdHJpbmdpZnkoXG4gICAgICBsb2NcbiAgICApfSBmb3IgcGFyZW50ICR7cGFyZW50Tm9kZVR5cGV9YFxuICApO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -69,2 +69,29 @@ const ATTR_VALUE_REGEX_TEST = /[\xA0"&]/; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE1BQU0scUJBQXFCLEdBQUcsVUFBOUI7QUFDQSxNQUFNLHdCQUF3QixHQUFHLElBQUksTUFBSixDQUFXLHFCQUFxQixDQUFDLE1BQWpDLEVBQXlDLEdBQXpDLENBQWpDO0FBRUEsTUFBTSxlQUFlLEdBQUcsV0FBeEI7QUFDQSxNQUFNLGtCQUFrQixHQUFHLElBQUksTUFBSixDQUFXLGVBQWUsQ0FBQyxNQUEzQixFQUFtQyxHQUFuQyxDQUEz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NlIENoYXIuTFQ6XG4gICAgICByZXR1cm4gJyZsdDsnO1xuICAgIGNhc2UgQ2hhci5HVDpcbiAgICAgIHJldHVybiAnJmd0Oyc7XG4gICAgZGVmYXVsdDpcbiAgICAgIHJldHVybiBjaGFyO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBlc2NhcGVBdHRyVmFsdWUoYXR0clZhbHVlOiBzdHJpbmcpIHtcbiAgaWYgKEFUVFJfVkFMVUVfUkVHRVhfVEVTVC50ZXN0KGF0dHJWYWx1ZSkpIHtcbiAgICByZXR1cm4gYXR0clZhbHVlLnJlcGxhY2UoQVRUUl9WQUxVRV9SRUdFWF9SRVBMQUNFLCBhdHRyVmFsdWVSZXBsYWNlcik7XG4gIH1cbiAgcmV0dXJuIGF0dHJWYWx1ZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZVRleHQodGV4dDogc3RyaW5nKSB7XG4gIGlmIChURVhUX1JFR0VYX1RFU1QudGVzdCh0ZXh0KSkge1xuICAgIHJldHVybiB0ZXh0LnJlcGxhY2UoVEVYVF9SRUdFWF9SRVBMQUNFLCB0ZXh0UmVwbGFjZXIpO1xuICB9XG4gIHJldHVybiB0ZXh0O1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== | ||
export function isSynthetic(node) { | ||
if (node && node.loc) { | ||
return node.loc.source === '(synthetic)'; | ||
} | ||
return false; | ||
} | ||
export function sortByLoc(a, b) { | ||
// be conservative about the location where a new node is inserted | ||
if (isSynthetic(a) || isSynthetic(b)) { | ||
return 0; | ||
} | ||
if (a.loc.start.line < b.loc.start.line) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column < b.loc.start.column) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column === b.loc.start.column) { | ||
return 0; | ||
} | ||
return 1; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3V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* afterAttributeName */ | ||
: | ||
this.currentStartTag.comments.push(comment); | ||
@@ -419,2 +422,2 @@ break; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvcGFyc2VyL2hhbmRsZWJhcnMtbm9kZS12aXNpdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLENBQVAsTUFBYyxhQUFkO0FBQ0EsU0FBUyxXQUFULEVBQXNCLFNBQXRCLEVBQWlDLFlBQWpDLFFBQXFELFVBQXJEO0FBR0EsU0FBUyxNQUFULFFBQXVDLFdBQXZDO0FBQ0EsT0FBTyxXQUFQLE1BQXdCLHdCQUF4QjtBQUtBLE9BQU0sTUFBZ0Isc0JBQWhCLFNBQStDLE1BQS9DLENBQXFEO0FBS3pELE1BQVksVUFBWixHQUFzQjtBQUNwQixXQUFPLEtBQUssWUFBTCxDQUFrQixNQUFsQixLQUE2QixDQUFwQztBQUNEOztBQUtELEVBQUEsT0FBTyxDQUFDLE9BQUQsRUFBcUI7QUFDMUIsUUFBSSxJQUFJLEdBQW9CLEVBQTVCO0FBQ0EsUUFBSSxJQUFKOztBQUVBLFFBQUksS0FBSyxVQUFULEVBQXFCO0FBQ25CLE1BQUEsSUFBSSxHQUFHLENBQUMsQ0FBQyxRQUFGLENBQVcsSUFBWCxFQUFpQixPQUFPLENBQUMsV0FBekIsRUFBc0MsT0FBTyxDQUFDLEdBQTlDLENBQVA7QUFDRCxLQUZELE1BRU87QUFDTCxNQUFBLElBQUksR0FBRyxDQUFDLENBQUMsV0FBRixDQUFjLElBQWQsRUFBb0IsT0FBTyxDQUFDLFdBQTVCLEVBQXlDLE9BQU8sQ0FBQyxPQUFqRCxFQUEwRCxPQUFPLENBQUMsR0FBbEUsQ0FBUDtBQUNEOztBQUVELFFBQUksQ0FBSjt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uaXplci5zdGF0ZSA9PT0gVG9rZW5pemVyU3RhdGUuY29tbWVudCkge1xuICAgICAgdGhpcy5hcHBlbmRUb0NvbW1lbnREYXRhKHRoaXMuc291cmNlRm9yTm9kZShibG9jaykpO1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGlmIChcbiAgICAgIHRoaXMudG9rZW5pemVyLnN0YXRlICE9PSBUb2tlbml6ZXJTdGF0ZS5kYXRhICYmXG4gICAgICB0aGlzLnRva2VuaXplclsnc3RhdGUnXSAhPT0gVG9rZW5pemVyU3RhdGUuYmVmb3JlRGF0YVxuICAgICkge1xuICAgICAgdGhyb3cgbmV3IFN5bnRheEVycm9yKFxuICAgICAgICAnQSBibG9jayBtYXkgb25seSBiZSB1c2VkIGluc2lkZSBhbiBIVE1MIGVsZW1lbnQgb3IgYW5vdGhlciBibG9jay4nLFxuICAgICAgICBibG9jay5sb2NcbiAgICAgICk7XG4gICAgfVxuXG4gICAgbGV0IHsgcGF0aCwgcGFyYW1zLCBoYXNoIH0gPSBhY2NlcHRDYWxsTm9kZXModGhpcywgYmxvY2spO1xuICAgIGxldCBwcm9ncmFtID0gdGhpcy5Qcm9ncmFtKGJsb2NrLnByb2dyYW0pO1xuICAgIGxldCBpbnZlcnNlID0gYmxvY2suaW52ZXJzZSA/IHRoaXMuUHJvZ3JhbShibG9jay5pbnZlcnNlKSA6IG51bGw7XG5cbiAgICBsZXQgbm9kZSA9IGIuYmxvY2soXG4gICAgICBwYXRoLFxuICAgICAgcGFyYW1zLFxuICAgICAgaGFzaCxcbiAgICAgIHByb2dyYW0sXG4gICAgICBpbnZlcnNlLFxuICAgICAgYmxvY2subG9jLFxuICAgICAgYmxvY2sub3BlblN0cmlwLFxuICAgICAgYmxvY2suaW52ZXJzZVN0cmlwLFxuICAgICAgYmxvY2suY2xvc2VTdHJpcFxuICAgICk7XG5cbiAgICBsZXQgcGFyZW50UHJvZ3JhbSA9IHRoaXMuY3VycmVudEVsZW1lbnQoKTtcblxuIC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iBHbGltbWVyIGFuZCB1bm5lY2Vzc2FyeTogXCIke3BhdGgub3JpZ2luYWx9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfS5gLFxuICAgICAgICAgIHBhdGgubG9jXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBpZiAob3JpZ2luYWwuc2xpY2UoMCwgMykgPT09ICcuLi8nKSB7XG4gICAgICAgIHRocm93IG5ldyBTeW50YXhFcnJvcihcbiAgICAgICAgICBgQ2hhbmdpbmcgY29udGV4dCB1c2luZyBcIi4uL1wiIGlzIG5vdCBzdXBwb3J0ZWQgaW4gR2xpbW1lcjogXCIke3BhdGgub3JpZ2luYWx9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfS5gLFxuICAgICAgICAgIHBhdGgubG9jXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBpZiAob3JpZ2luYWwuaW5kZXhPZignLicpICE9PSAtMSkge1xuICAgICAgICB0aHJvdyBuZXcgU3ludGF4RXJyb3IoXG4gICAgICAgICAgYE1peGluZyAnLicgYW5kICcvJyBpbiBwYXRocyBpcyBub3Qgc3VwcG9ydGVkIGluIEdsaW1tZXI7IHVzZSBvbmx5ICcuJyB0byBzZXBhcmF0ZSBwcm9wZXJ0eSBwYXRoczogXCIke3BhdGgub3JpZ2luYWx9XCIgb24gbGluZSAke2xvYy5zdGFydC5saW5lfS5gLFxuICAgICAgICAgIHBhdGgubG9jXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBwYXJ0cyA9IFtwYXRoLnBhcnRzLmpvaW4oJy8nKV07XG4gICAgfSBlbHNlIGlmIChvcmlnaW5hbCA9PT0gJy4nKSB7XG4gICAgICBsZXQgbG9jYXRpb25JbmZvID0gYEwke2xvYy5zdGFydC5saW5lfTpDJHtsb2Muc3RhcnQuY29sdW1ufWA7XG4gICAgICB0aHJvdyBuZXcgU3ludGF4RXJyb3IoXG4gICAgICAgIGAnLicgaXMgbm90IGEgc3VwcG9ydGVkIHBhdGggaW4g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W9kaWZpZXI6IFwiJHtwYXRoLm9yaWdpbmFsfVwiIG9uIGxpbmUgJHtcbiAgICAgICAgbG9jICYmIGxvYy5zdGFydC5saW5lXG4gICAgICB9LmAsXG4gICAgICBtdXN0YWNoZS5sb2NcbiAgICApO1xuICB9XG5cbiAgbGV0IG1vZGlmaWVyID0gYi5lbGVtZW50TW9kaWZpZXIocGF0aCwgcGFyYW1zLCBoYXNoLCBsb2MpO1xuICBlbGVtZW50Lm1vZGlmaWVycy5wdXNoKG1vZGlmaWVyKTtcbn1cblxuZnVuY3Rpb24gYXBwZW5kRHluYW1pY0F0dHJpYnV0ZVZhbHVlUGFydChhdHRyaWJ1dGU6IEF0dHJpYnV0ZSwgcGFydDogQVNULk11c3RhY2hlU3RhdGVtZW50KSB7XG4gIGF0dHJpYnV0ZS5pc0R5bmFtaWMgPSB0cnVlO1xuICBhdHRyaWJ1dGUucGFydHMucHVzaChwYXJ0KTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= |
@@ -10,3 +10,4 @@ // used by ember-compiler | ||
export { default as Walker } from './lib/traversal/walker'; | ||
export { default as print } from './lib/generation/print'; // errors | ||
export { default as print } from './lib/generation/print'; | ||
export { sortByLoc } from './lib/generation/util'; // errors | ||
@@ -18,2 +19,2 @@ export { default as SyntaxError } from './lib/errors/syntax-error'; // AST | ||
export { isLiteral, printLiteral } from './lib/utils'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBLFNBQUEsVUFBQSxRQUFBLHVDQUFBLEMsQ0FTQTs7QUFDQSxTQUFTLE9BQU8sSUFBaEIsUUFBQSxRQUFBLGdCQUFBO0FBQ0EsU0FDRSxPQUFPLElBRFQsY0FBQSxFQUFBLGdCQUFBLEVBQUEsaUJ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lcnNhbC90cmF2ZXJzZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90cmF2ZXJzYWwvdmlzaXRvcic7XG5leHBvcnQgeyBkZWZhdWx0IGFzIFBhdGggfSBmcm9tICcuL2xpYi90cmF2ZXJzYWwvcGF0aCc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIFdhbGtlciB9IGZyb20gJy4vbGliL3RyYXZlcnNhbC93YWxrZXInO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBwcmludCB9IGZyb20gJy4vbGliL2dlbmVyYXRpb24vcHJpbnQnO1xuZXhwb3J0IHsgc29ydEJ5TG9jIH0gZnJvbSAnLi9saWIvZ2VuZXJhdGlvbi91dGlsJztcblxuLy8gZXJyb3JzXG5leHBvcnQgeyBkZWZhdWx0IGFzIFN5bnRheEVycm9yIH0gZnJvbSAnLi9saWIvZXJyb3JzL3N5bnRheC1lcnJvcic7XG5cbi8vIEFTVFxuaW1wb3J0ICogYXMgQVNUIGZyb20gJy4vbGliL3R5cGVzL25vZGVzJztcbmV4cG9ydCB7IEFTVCB9O1xuZXhwb3J0IHsgaXNMaXRlcmFsLCBwcmludExpdGVyYWwgfSBmcm9tICcuL2xpYi91dGlscyc7XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -0,3 +1,9 @@ | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
import { voidMap } from '../parser/tokenizer-event-handlers'; | ||
import { escapeText, escapeAttrValue } from './util'; | ||
import { escapeText, escapeAttrValue, sortByLoc } from './util'; | ||
var NON_WHITESPACE = /\S/; | ||
@@ -222,30 +228,24 @@ | ||
_proto.OpenElementNode = function OpenElementNode(el) { | ||
var _this2 = this; | ||
this.buffer += "<" + el.tag; | ||
var parts = [].concat(el.attributes, el.modifiers, el.comments).sort(sortByLoc); | ||
if (el.attributes.length) { | ||
el.attributes.forEach(function (attr) { | ||
_this2.buffer += ' '; | ||
for (var _iterator = _createForOfIteratorHelperLoose(parts), _step; !(_step = _iterator()).done;) { | ||
var part = _step.value; | ||
this.buffer += ' '; | ||
_this2.AttrNode(attr); | ||
}); | ||
} | ||
switch (part.type) { | ||
case 'AttrNode': | ||
this.AttrNode(part); | ||
break; | ||
if (el.modifiers.length) { | ||
el.modifiers.forEach(function (mod) { | ||
_this2.buffer += ' '; | ||
case 'ElementModifierStatement': | ||
this.ElementModifierStatement(part); | ||
break; | ||
_this2.ElementModifierStatement(mod); | ||
}); | ||
case 'MustacheCommentStatement': | ||
this.MustacheCommentStatement(part); | ||
break; | ||
} | ||
} | ||
if (el.comments.length) { | ||
el.comments.forEach(function (comment) { | ||
_this2.buffer += ' '; | ||
_this2.MustacheCommentStatement(comment); | ||
}); | ||
} | ||
if (el.blockParams.length) { | ||
@@ -393,3 +393,3 @@ this.BlockParams(el.blockParams); | ||
_proto.ConcatStatement = function ConcatStatement(concat) { | ||
var _this3 = this; | ||
var _this2 = this; | ||
@@ -403,5 +403,5 @@ if (this.handledByOverride(concat)) { | ||
if (part.type === 'TextNode') { | ||
_this3.TextNode(part, true); | ||
_this2.TextNode(part, true); | ||
} else { | ||
_this3.Node(part); | ||
_this2.Node(part); | ||
} | ||
@@ -461,3 +461,3 @@ }); | ||
_proto.Params = function Params(params) { | ||
var _this4 = this; | ||
var _this3 = this; | ||
@@ -468,5 +468,5 @@ // TODO: implement a top level Params AST node (just like the Hash object) | ||
params.forEach(function (param) { | ||
_this4.buffer += ' '; | ||
_this3.buffer += ' '; | ||
_this4.Expression(param); | ||
_this3.Expression(param); | ||
}); | ||
@@ -477,3 +477,3 @@ } | ||
_proto.Hash = function Hash(hash) { | ||
var _this5 = this; | ||
var _this4 = this; | ||
@@ -485,5 +485,5 @@ if (this.handledByOverride(hash, true)) { | ||
hash.pairs.forEach(function (pair) { | ||
_this5.buffer += ' '; | ||
_this4.buffer += ' '; | ||
_this5.HashPair(pair); | ||
_this4.HashPair(pair); | ||
}); | ||
@@ -568,2 +568,2 @@ }; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi9wcmludGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTRCQSxTQUFBLE9BQUEsUUFBQSxvQ0FBQTtBQUNBLFNBQUEsVUFBQSxFQUFBLGVBQUEsUUFBQSxRQUFBO0FBRUEsSUFBTSxjQUFjLEdBQXBCLElBQUE7O0lBc0JjLE87QUFJWixtQkFBQSxPQUFBLEVBQW1DO0FBSDNCLFNBQUEsTUFBQSxHQUFBLEVBQUE7QUFJTixTQUFBLE9BQUEsR0FBQSxPQUFBO0FBQ0Q7QUFFRDs7Ozs7Ozs7Ozs7O1NBU0EsaUIsR0FBQSwyQkFBaUIsSUFBakIsRUFBOEIsdUJBQTlCLEVBQTZEO0FBQUEsUUFBL0IsdUJBQStCO0FBQS9CL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ICAgIH1cblxuICAgIHRoaXMuYnVmZmVyICs9ICdudWxsJztcbiAgfVxuXG4gIHByaW50KG5vZGU6IE5vZGUpIHtcbiAgICBsZXQgeyBvcHRpb25zIH0gPSB0aGlzO1xuXG4gICAgaWYgKG9wdGlvbnMub3ZlcnJpZGUpIHtcbiAgICAgIGxldCByZXN1bHQgPSBvcHRpb25zLm92ZXJyaWRlKG5vZGUsIG9wdGlvbnMpO1xuXG4gICAgICBpZiAocmVzdWx0ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgIH1cbiAgICB9XG5cbiAgICB0aGlzLmJ1ZmZlciA9ICcnO1xuICAgIHRoaXMuTm9kZShub2RlKTtcbiAgICByZXR1cm4gdGhpcy5idWZmZXI7XG4gIH1cbn1cblxuZnVuY3Rpb24gdW5yZWFjaGFibGUobm9kZTogbmV2ZXIsIHBhcmVudE5vZGVUeXBlOiBzdHJpbmcpOiBuZXZlciB7XG4gIGxldCB7IGxvYywgdHlwZSB9ID0gKG5vZGUgYXMgYW55KSBhcyBOb2RlO1xuICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgYE5vbi1leGhhdXN0aXZlIG5vZGUgbmFycm93aW5nICR7dHlwZX0gQCBsb2NhdGlvbjogJHtKU09OLnN0cmluZ2lmeShcbiAgICAgIGxvY1xuICAgICl9IGZvciBwYXJlbnQgJHtwYXJlbnROb2RlVHlwZX1gXG4gICk7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -69,2 +69,29 @@ var ATTR_VALUE_REGEX_TEST = /[\xA0"&]/; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLElBQU0sc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Z1bmN0aW9uIHRleHRSZXBsYWNlcihjaGFyOiBzdHJpbmcpIHtcbiAgc3dpdGNoIChjaGFyLmNoYXJDb2RlQXQoMCkpIHtcbiAgICBjYXNlIENoYXIuTkJTUDpcbiAgICAgIHJldHVybiAnJm5ic3A7JztcbiAgICBjYXNlIENoYXIuQU1QOlxuICAgICAgcmV0dXJuICcmYW1wOyc7XG4gICAgY2FzZSBDaGFyLkxUOlxuICAgICAgcmV0dXJuICcmbHQ7JztcbiAgICBjYXNlIENoYXIuR1Q6XG4gICAgICByZXR1cm4gJyZndDsnO1xuICAgIGRlZmF1bHQ6XG4gICAgICByZXR1cm4gY2hhcjtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZXNjYXBlQXR0clZhbHVlKGF0dHJWYWx1ZTogc3RyaW5nKSB7XG4gIGlmIChBVFRSX1ZBTFVFX1JFR0VYX1RFU1QudGVzdChhdHRyVmFsdWUpKSB7XG4gICAgcmV0dXJuIGF0dHJWYWx1ZS5yZXBsYWNlKEFUVFJfVkFMVUVfUkVHRVhfUkVQTEFDRSwgYXR0clZhbHVlUmVwbGFjZXIpO1xuICB9XG4gIHJldHVybiBhdHRyVmFsdWU7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBlc2NhcGVUZXh0KHRleHQ6IHN0cmluZykge1xuICBpZiAoVEVYVF9SRUdFWF9URVNULnRlc3QodGV4dCkpIHtcbiAgICByZXR1cm4gdGV4dC5yZXBsYWNlKFRFWFRfUkVHRVhfUkVQTEFDRSwgdGV4dFJlcGxhY2VyKTtcbiAgfVxuICByZXR1cm4gdGV4dDtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= | ||
export function isSynthetic(node) { | ||
if (node && node.loc) { | ||
return node.loc.source === '(synthetic)'; | ||
} | ||
return false; | ||
} | ||
export function sortByLoc(a, b) { | ||
// be conservative about the location where a new node is inserted | ||
if (isSynthetic(a) || isSynthetic(b)) { | ||
return 0; | ||
} | ||
if (a.loc.start.line < b.loc.start.line) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column < b.loc.start.column) { | ||
return -1; | ||
} | ||
if (a.loc.start.line === b.loc.start.line && a.loc.start.column === b.loc.start.column) { | ||
return 0; | ||
} | ||
return 1; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvZ2VuZXJhdGlvbi91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVBLElBQU0scUJBQXFCLEdBQTNCLFVBQUE7QUFDQSxJQUFNLHdCQUF3QixHQUFHLElBQUEsTUFBQSxDQUFXLHFCQUFxQixDQUFoQyxNQUFBLEVBQWpDLEdBQWlDLENBQWpDO0FBRUEsSUFBTSxlQUFlLEdBQXJCLFdBQUE7QUFDQSxJQUFNLGtCQUFrQixHQUFHLElBQUEsTUFBQSxDQUFXLGVBQWUsQ0FBMUIsTUFBQSxFQUEzQixHQUEyQixDQUEzQjs7QUFFQSxTQUFBLGlCQUFBLENBQUEsS0FBQSxFQUF1QztBQUNyQyxVQUFRLEtBQUksQ0FBSixVQUFBLENBQVIsQ0FBUSxDQUFSO0FBQ0UsU0FBQTtBQUFBO0FBQUE7QUFDRSxhQUFBLFFBQUE7O0FBQ0YsU0FBQTtBQUFBO0FBQUE7QUFDRSxhQUFBLFFBQUE7O0FBQ0YsU0FBQTtBQUFBO0FBQUE7QUFDRSxhQUFBLE9BQUE7O0FBQ0Y7QUFDRSxhQUFBLEtBQUE7QUFSSjtBQVVEOztBQUVELFNBQUEsWUFBQSxDQUFBLE1BQUEsRUFBa0M7QUFDaEMsVUFBUSxNQUFJLENBQUosVUFBQSxDQUFSLENBQVEsQ0FBUjtBQUNFLFNBQUE7QUFBQTtBQUFBO0FBQ0UsYUFBQSxRQUFBOztBQUNGLFNBQUE7QUFBQTt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iYgYS5sb2Muc3RhcnQuY29sdW1uID09PSBiLmxvYy5zdGFydC5jb2x1bW4pIHtcbiAgICByZXR1cm4gMDtcbiAgfVxuXG4gIHJldHVybiAxO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -208,2 +208,5 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
: | ||
case "afterAttributeName" | ||
/* afterAttributeName */ | ||
: | ||
this.currentStartTag.comments.push(comment); | ||
@@ -420,2 +423,2 @@ break; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3N5bnRheC9saWIvcGFyc2VyL2hhbmRsZWJhcnMtbm9kZS12aXNpdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFBLENBQUEsTUFBQSxhQUFBO0FBQ0EsU0FBQSxXQUFBLEVBQUEsU0FBQSxFQUFBLFlBQUEsUUFBQSxVQUFBO0FBR0EsU0FBQSxNQUFBLFFBQUEsV0FBQTtBQUNBLE9BQUEsV0FBQSxNQUFBLHdCQUFBO0FBS0EsV0FBTSxzQkFBTjtBQUFBOztBQUFBO0FBQUE7QUFBQTs7QUFBQTs7QUFBQSxTQVlFLE9BWkYsR0FZRSxpQkFBTyxPQUFQLEVBQTRCO0FBQzFCLFFBQUksSUFBSSxHQUFSLEVBQUE7QUFDQSxRQUFBLElBQUE7O0FBRUEsUUFBSSxLQUFKLFVBQUEsRUFBcUI7QUFDbkIsTUFBQSxJQUFJLEdBQUcsQ0FBQyxDQUFELFFBQUEsQ0FBQSxJQUFBLEVBQWlCLE9BQU8sQ0FBeEIsV0FBQSxFQUFzQyx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JpYnV0ZVZhbHVlUGFydChhdHRyaWJ1dGU6IEF0dHJpYnV0ZSwgcGFydDogQVNULk11c3RhY2hlU3RhdGVtZW50KSB7XG4gIGF0dHJpYnV0ZS5pc0R5bmFtaWMgPSB0cnVlO1xuICBhdHRyaWJ1dGUucGFydHMucHVzaChwYXJ0KTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= |
@@ -9,2 +9,3 @@ export { preprocess, PreprocessOptions, ASTPlugin, ASTPluginBuilder, ASTPluginEnvironment, Syntax, } from './lib/parser/tokenizer-event-handlers'; | ||
export { default as print } from './lib/generation/print'; | ||
export { sortByLoc } from './lib/generation/util'; | ||
export { default as SyntaxError } from './lib/errors/syntax-error'; | ||
@@ -11,0 +12,0 @@ import * as AST from './lib/types/nodes'; |
@@ -0,3 +1,6 @@ | ||
import * as AST from '../types/nodes'; | ||
export declare function escapeAttrValue(attrValue: string): string; | ||
export declare function escapeText(text: string): string; | ||
export declare function isSynthetic(node: AST.Node): boolean; | ||
export declare function sortByLoc(a: AST.Node, b: AST.Node): -1 | 0 | 1; | ||
//# sourceMappingURL=util.d.ts.map |
{ | ||
"name": "@glimmer/syntax", | ||
"version": "0.65.2", | ||
"version": "0.65.3", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/syntax", | ||
"dependencies": { | ||
"@glimmer/interfaces": "0.65.2", | ||
"@glimmer/util": "0.65.2", | ||
"@glimmer/interfaces": "0.65.3", | ||
"@glimmer/util": "0.65.3", | ||
"@handlebars/parser": "^1.1.0", | ||
@@ -12,3 +12,3 @@ "simple-html-tokenizer": "^0.5.10" | ||
"devDependencies": { | ||
"@glimmer/local-debug-flags": "0.65.2", | ||
"@glimmer/local-debug-flags": "0.65.3", | ||
"@types/qunit": "^2.9.0" | ||
@@ -15,0 +15,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1484927
12727
+ Added@glimmer/interfaces@0.65.3(transitive)
+ Added@glimmer/util@0.65.3(transitive)
- Removed@glimmer/interfaces@0.65.2(transitive)
- Removed@glimmer/util@0.65.2(transitive)
Updated@glimmer/interfaces@0.65.3
Updated@glimmer/util@0.65.3