[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode b2454f1967 058/135: Bookkeeping of static cla
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode b2454f1967 058/135: Bookkeeping of static class property |
Date: |
Sun, 29 Jan 2023 03:11:04 -0500 (EST) |
branch: externals/phps-mode
commit b2454f1967ae98aead75d1087e182c1c2ef6ca84
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Bookkeeping of static class property
---
phps-mode-parser-sdt.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/phps-mode-parser-sdt.el b/phps-mode-parser-sdt.el
index ecd0168bc7..ac5fae8afe 100644
--- a/phps-mode-parser-sdt.el
+++ b/phps-mode-parser-sdt.el
@@ -3078,7 +3078,13 @@
(cond
((equal attributed-class-statement-type 'property)
(let ((property-list
- (plist-get attributed-class-statement 'subject)))
+ (plist-get attributed-class-statement 'subject))
+ (is-static))
+ (when-let (property-modifiers
+ (plist-get attributed-class-statement 'modifiers))
+ (dolist (modifier property-modifiers)
+ (when (equal modifier 'static)
+ (setq is-static t))))
(dolist (property property-list)
(let ((property-type
(plist-get property 'ast-type)))
@@ -3092,6 +3098,8 @@
(plist-get property 'ast-end))
(symbol-scope
phps-mode-parser-sdt--bookkeeping-namespace))
+ (when is-static
+ (push (list 'static) symbol-scope))
(push
(list
symbol-name
@@ -3419,7 +3427,7 @@
(puthash 324 (lambda(args _terminals) args)
phps-mode-parser--table-translations)
;; 325 ((variable_modifiers) (T_VAR))
-(puthash 325 (lambda(_args _terminals) 'public)
phps-mode-parser--table-translations)
+(puthash 325 (lambda(_args _terminals) '(public))
phps-mode-parser--table-translations)
;; 326 ((method_modifiers) (%empty))
(puthash 326 (lambda(_args _terminals) nil)
phps-mode-parser--table-translations)
- [elpa] externals/phps-mode 7602348327 031/135: More SDT rules, (continued)
- [elpa] externals/phps-mode 7602348327 031/135: More SDT rules, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 7dcaa1df9e 034/135: Added SDT rules for all productions, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 258551c02a 035/135: More work on bookkeeping generation via SDT, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode e887dc91e3 043/135: Added TODO items, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 002b27bfb7 054/135: Started on bookkeeping support via SDT for class properties via object operator, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode ad3b10e716 055/135: Added variable reference to bookkeeping stack where it is referencing $this, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 911abb044e 024/135: SDT method_body, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 75743d0c25 022/135: Merge branch 'master' into feature/full-sdt, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 610358e2ef 026/135: SDT for property, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 4981a1eb45 032/135: SDT rules up to 520, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode b2454f1967 058/135: Bookkeeping of static class property,
Christian Johansson <=
- [elpa] externals/phps-mode 962b905ca0 057/135: Bookkeeping working for class non-static properties, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 7b9f8011f1 056/135: More testing, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode e2f2c86e18 059/135: Improved class properties bookkeeping test, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode eac10d63e6 063/135: Started on bookkeeping of variables inside anonymous functions, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode e924ac83b6 065/135: Improved bookkeeping test for anonymous function, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode e614a20ada 066/135: Added bookkeeping for referenced foreach variables, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode d33625bb1a 067/135: Bookkeeping for array assignment passing test, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode a646676781 084/135: Passing more bookkeeping tests, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 7609f09f04 090/135: More bookkeeping final touches, Christian Johansson, 2023/01/29
- [elpa] externals/phps-mode 6c6906317a 095/135: Added bookkeeping test for trait class symbols, Christian Johansson, 2023/01/29