Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into flow
Browse files Browse the repository at this point in the history
  • Loading branch information
HairyRabbit committed Dec 25, 2017
2 parents 1250943 + d72ed20 commit e2f2b6c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions js2-mode.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; js2-mode.el --- Improved JavaScript editing mode
;;; js2-mode.el --- Improved JavaScript editing mode -*- lexical-binding: t -*-

;; Copyright (C) 2009, 2011-2017 Free Software Foundation, Inc.

Expand Down Expand Up @@ -2385,10 +2385,7 @@ NAME can be a Lisp symbol or string. SYMBOL is a `js2-symbol'."
(:include js2-scope)
(:constructor make-js2-script-node (&key (type js2-SCRIPT)
(pos (js2-current-token-beg))
len
;; FIXME: What are those?
var-decls
fun-decls)))
len)))
functions ; Lisp list of nested functions
regexps ; Lisp list of (string . flags)
symbols ; alist (every symbol gets unique index)
Expand Down Expand Up @@ -12116,15 +12113,15 @@ and expression closure style is also supported

{ get foo() x, set foo(x) _x = x }

POS is the start position of the `get' or `set' keyword.
POS is the start position of the `get' or `set' keyword, if any.
PROP is the `js2-name-node' representing the property name.
TYPE-STRING is a string `get', `set', `*', or nil, indicating a found keyword."
(let* ((type (or (cdr (assoc type-string '(("get" . GET)
("set" . SET)
("async" . ASYNC))))
'FUNCTION))
result end
(pos (js2-current-token-beg))
(pos (or pos (js2-current-token-beg)))
(_ (js2-must-match js2-LP "msg.no.paren.parms"))
(fn (js2-parse-function 'FUNCTION_EXPRESSION pos
(string= type-string "*")
Expand Down

0 comments on commit e2f2b6c

Please sign in to comment.