summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r--lib/handlebars/compiler/ast.js8
-rw-r--r--lib/handlebars/compiler/helpers.js4
2 files changed, 3 insertions, 9 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js
index 05de762..35a60db 100644
--- a/lib/handlebars/compiler/ast.js
+++ b/lib/handlebars/compiler/ast.js
@@ -93,14 +93,6 @@ var AST = {
}
},
- RawBlockNode: function(sexpr, content, locInfo) {
- LocationInfo.call(this, locInfo);
-
- this.type = 'block';
- this.sexpr = sexpr;
- this.program = new AST.ProgramNode([content], {}, locInfo);
- },
-
ContentNode: function(string, locInfo) {
LocationInfo.call(this, locInfo);
this.type = "content";
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js
index c9a35c2..02b307b 100644
--- a/lib/handlebars/compiler/helpers.js
+++ b/lib/handlebars/compiler/helpers.js
@@ -23,7 +23,9 @@ export function prepareRawBlock(openRawBlock, content, close, locInfo) {
throw new Exception(openRawBlock.sexpr.id.original + " doesn't match " + close, errorNode);
}
- return new this.RawBlockNode(openRawBlock.sexpr, content, locInfo);
+ var program = new this.ProgramNode([content], {}, locInfo);
+
+ return new this.BlockNode(openRawBlock.sexpr, program, undefined, undefined, locInfo);
}
export function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) {