]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix compiler warning
authorJackson Hamilton <jackson@jacksonrayhamilton.com>
Sun, 3 Jan 2016 03:30:55 +0000 (19:30 -0800)
committerJackson Hamilton <jackson@jacksonrayhamilton.com>
Sun, 3 Jan 2016 03:30:55 +0000 (19:30 -0800)
js2-mode.el

index 049fd8d66272dfb70869da5bf9e33e3afe72b24f..3050417f65af3acd78ffd66a4199457a3a415e0c 100644 (file)
@@ -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)))