emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 97065c8 075/110: Fix compiler warning


From: Dmitry Gutov
Subject: [elpa] master 97065c8 075/110: Fix compiler warning
Date: Thu, 23 Jun 2016 01:13:00 +0000 (UTC)

branch: master
commit 97065c87de971e85a0981dced70c8cc420c51611
Author: Jackson Hamilton <address@hidden>
Commit: Jackson Hamilton <address@hidden>

    Fix compiler warning
---
 js2-mode.el |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 049fd8d..3050417 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -7753,6 +7753,9 @@ string is NAME.  Returns nil and keeps current token 
otherwise."
   (and (js2-contextual-kwd-p (js2-current-token) "async")
        (/= (js2-peek-token) js2-FUNCTION)))
 
+(defsubst js2-inside-function ()
+  (cl-plusp js2-nesting-of-function))
+
 (defun js2-parse-await-maybe (tt)
   "Parse \"await\" as an AwaitExpression, if it is one."
   (let (pn post-parse-ts-state)
@@ -7837,9 +7840,6 @@ Returns t on match, nil if no match."
       (js2-unget-token))
     nil))
 
-(defsubst js2-inside-function ()
-  (cl-plusp js2-nesting-of-function))
-
 (defun js2-set-requires-activation ()
   (if (js2-function-node-p js2-current-script-or-fn)
       (setf (js2-function-node-needs-activation js2-current-script-or-fn) t)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]