[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master af85699 30/38: Clean up todo in js2-search-scope and fix y
From: |
Dmitry Gutov |
Subject: |
[elpa] master af85699 30/38: Clean up todo in js2-search-scope and fix year typo |
Date: |
Wed, 09 Sep 2015 18:41:49 +0000 |
branch: master
commit af8569926239e73eccb091500f4b6e5c0f5e9d20
Author: ScottyB <address@hidden>
Commit: ScottyB <address@hidden>
Clean up todo in js2-search-scope and fix year typo
---
js2-mode.el | 16 +++++++---------
tests/navigation.el | 2 +-
2 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 2d762e0..a42c02c 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -12413,15 +12413,13 @@ and variables NAMES will contain one element."
(prop-names (mapcar 'car prop-list))
(found (loop for prop in prop-names
until (not (string= (pop temp-names)
prop))
- if (not temp-names) return prop)))
-
- ;; todo: clean this up!
- (if found (push (cdr (assoc found prop-list)) node-init)
- (when (js2-object-node-p right)
- (setq found (js2-search-object-for-prop right
temp-names)))
- (if found (push found node-init))))))
- t)))))
- node-init))
+ if (not temp-names) return prop))
+ (found-node (if found (cdr (assoc found prop-list))
+ (when (js2-object-node-p right)
+ (js2-search-object-for-prop right
temp-names)))))
+ (if found-node (push found-node node-init))))))
+ t))))
+ node-init))
(defun js2-names-left (name-node)
"Returns a list of names for a `js2-prop-get-node'.
diff --git a/tests/navigation.el b/tests/navigation.el
index 3a3c240..d7a8314 100644
--- a/tests/navigation.el
+++ b/tests/navigation.el
@@ -1,6 +1,6 @@
;;; tests/navigation.el --- Some tests for js2-mode.
-;; Copyright (C) 2009, 2011-2013 Free Software Foundation, Inc.
+;; Copyright (C) 2009, 2011-2015 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
- [elpa] master f146f13 17/38: js2-define-destruct-symbols-internal: Stop growing NAME-NODES exponentially, (continued)
- [elpa] master f146f13 17/38: js2-define-destruct-symbols-internal: Stop growing NAME-NODES exponentially, Dmitry Gutov, 2015/09/09
- [elpa] master eba59c5 21/38: Added missing etags dependency, Dmitry Gutov, 2015/09/09
- [elpa] master 7184664 20/38: Add a jump to definition command bound to M-., Dmitry Gutov, 2015/09/09
- [elpa] master bc5cdb4 23/38: Simplified property name matching, Dmitry Gutov, 2015/09/09
- [elpa] master 1ee5c45 22/38: Return correct node when searching for the definition of a property., Dmitry Gutov, 2015/09/09
- [elpa] master 579aacb 24/38: Simplified method of searching for nodes based on scope, Dmitry Gutov, 2015/09/09
- [elpa] master f942b83 26/38: Support jumping to buffers of the same major mode, Dmitry Gutov, 2015/09/09
- [elpa] master 145c5d6 25/38: Fixed jumping to object properties, Dmitry Gutov, 2015/09/09
- [elpa] master bb0476c 29/38: Clarified js2-search-scope doc string, Dmitry Gutov, 2015/09/09
- [elpa] master c4f4095 28/38: Only jump if not already at var or function definition, Dmitry Gutov, 2015/09/09
- [elpa] master af85699 30/38: Clean up todo in js2-search-scope and fix year typo,
Dmitry Gutov <=
- [elpa] master aaf218a 27/38: Find definition by locating assignment nodes, Dmitry Gutov, 2015/09/09
- [elpa] master e236923 31/38: Removed functions: js2-build-prop-name-list and js2-names-left., Dmitry Gutov, 2015/09/09
- [elpa] master 75129c1 33/38: Use cl-assert instead of error, Dmitry Gutov, 2015/09/09
- [elpa] master bbb5086 34/38: Remove a space, Dmitry Gutov, 2015/09/09
- [elpa] master 58335d4 36/38: Add NEWS and bump the version, Dmitry Gutov, 2015/09/09
- [elpa] master 9ad7708 32/38: Add cl- prefix, improve line lengths, Dmitry Gutov, 2015/09/09
- [elpa] master ffa06cb 35/38: Explicitly remap js-find-symbol, Dmitry Gutov, 2015/09/09
- [elpa] master 5c9d8b8 37/38: Rephrase, Dmitry Gutov, 2015/09/09
- [elpa] master 5ffca32 38/38: Merge commit '5c9d8b82dddec2fab370ec8798569c7fc5698093' from js2-mode, Dmitry Gutov, 2015/09/09