[Pkg-javascript-commits] [node-acorn-jsx] 390/484: `shouldSkipSpace` is no more needed in `finishToken`.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:21:00 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 7e85da74cbb835963960721ff67a4520d106a387
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Wed Jan 14 12:31:59 2015 +0200

    `shouldSkipSpace` is no more needed in `finishToken`.
---
 acorn.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/acorn.js b/acorn.js
index f3a9d61..beb4959 100644
--- a/acorn.js
+++ b/acorn.js
@@ -662,12 +662,12 @@
   // after the token, so that the next one's `tokStart` will point at
   // the right position.
 
-  function finishToken(type, val, shouldSkipSpace) {
+  function finishToken(type, val) {
     tokEnd = tokPos;
     if (options.locations) tokEndLoc = curPosition();
     var prevType = tokType;
     tokType = type;
-    if (shouldSkipSpace !== false) skipSpace();
+    skipSpace();
     tokVal = val;
 
     // Update context info
@@ -686,7 +686,7 @@
     } else if (type.keyword && prevType == _dot) {
       tokExprAllowed = false;
     } else if (tokExprAllowed && type == _function) {
-      tokExprAllowed = null;
+      tokExprAllowed = false;
     } else {
       tokExprAllowed = type.beforeExpr;
     }

-- 
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