define( ["./visitor","exports"], function(__dependency1__, __exports__) { "use strict"; var Visitor = __dependency1__["default"]; function print(ast) { return new PrintVisitor().accept(ast); } __exports__.print = print;function PrintVisitor() { this.padding = 0; } __exports__.PrintVisitor = PrintVisitor;PrintVisitor.prototype = new Visitor(); PrintVisitor.prototype.pad = function(string) { var out = ""; for(var i=0,l=this.padding; i " + content + " }}"); }; PrintVisitor.prototype.hash = function(hash) { var pairs = hash.pairs; var joinedPairs = [], left, right; for(var i=0, l=pairs.length; i 1) { return "PATH:" + path; } else { return "ID:" + path; } }; PrintVisitor.prototype.PARTIAL_NAME = function(partialName) { return "PARTIAL:" + partialName.name; }; PrintVisitor.prototype.DATA = function(data) { return "@" + this.accept(data.id); }; PrintVisitor.prototype.content = function(content) { return this.pad("CONTENT[ '" + content.string + "' ]"); }; PrintVisitor.prototype.comment = function(comment) { return this.pad("{{! '" + comment.comment + "' }}"); }; });