[Pkg-javascript-commits] [node-acorn-jsx] 395/484: Kill finishNodeAt in acorn_loose as well

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:21:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 3e513fc6a8613bfec779faf32d19324c31422253
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Sat Jan 17 22:22:26 2015 +0100

    Kill finishNodeAt in acorn_loose as well
    
    Issue #200
---
 acorn_loose.js | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/acorn_loose.js b/acorn_loose.js
index b1b4613..03d92b7 100644
--- a/acorn_loose.js
+++ b/acorn_loose.js
@@ -257,14 +257,6 @@
     return node;
   }
 
-  function finishNodeAt(node, type, pos) {
-    if (options.locations) { node.loc.end = pos[1]; pos = pos[0]; }
-    node.type = type;
-    node.end = pos;
-    if (options.ranges) node.range[1] = pos;
-    return node;
-  }
-
   function dummyIdent() {
     var dummy = startNode();
     dummy.name = "✖";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list