From 7bfb5dd6915fd455e93086fc2b546802bdd77027 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Jan 2015 18:45:58 -0800 Subject: JS: sourceloc -> sourcepos for confirmity with cmark. --- js/lib/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/lib/node.js') diff --git a/js/lib/node.js b/js/lib/node.js index dfc77ab..102003c 100644 --- a/js/lib/node.js +++ b/js/lib/node.js @@ -60,14 +60,14 @@ NodeWalker.prototype.next = function(){ return {entering: entering, node: cur}; }; -function Node(nodeType, sourceloc) { +function Node(nodeType, sourcepos) { this.t = nodeType; this.parent = null; this.firstChild = null; this.lastChild = null; this.prev = null; this.next = null; - this.sourceloc = sourceloc; + this.sourcepos = sourcepos; this.last_line_blank = false; this.open = true; this.strings = undefined; @@ -167,7 +167,7 @@ Node.prototype.toAST = function() { var cur; var result = { t: this.t }; - var propsToShow = ['t', 'c', 'list_data', 'sourceloc', 'info', 'level']; + var propsToShow = ['t', 'c', 'list_data', 'sourcepos', 'info', 'level']; for (var i = 0; i < propsToShow.length; i++) { var prop = propsToShow[i]; -- cgit v1.2.3