[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode df0b707a61 044/212: Added parser SDT for inli
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode df0b707a61 044/212: Added parser SDT for inline-function |
Date: |
Wed, 26 Jan 2022 01:50:38 -0500 (EST) |
branch: externals/phps-mode
commit df0b707a61a6613aef9812fb716a04500983700d
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added parser SDT for inline-function
---
phps-mode-parser-sdt.el | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/phps-mode-parser-sdt.el b/phps-mode-parser-sdt.el
index f61ab9a926..719ab04249 100644
--- a/phps-mode-parser-sdt.el
+++ b/phps-mode-parser-sdt.el
@@ -601,6 +601,43 @@
ast-object))
phps-mode-parser--table-translations)
+;; inline_function -> (function returns_ref backup_doc_comment "("
parameter_list ")" lexical_vars return_type backup_fn_flags "{"
inner_statement_list "}" backup_fn_flags)
+(puthash
+ 416
+ (lambda(args terminals)
+ (let ((ast-object
+ (list
+ 'ast-type
+ 'inline-function
+ 'start
+ (car (cdr (nth 9 terminals)))
+ 'end
+ (cdr (cdr (nth 11 terminals)))
+ 'returns-ref
+ (nth 1 args)
+ 'backup-doc-comment
+ (nth 2 args)
+ 'parameter-list
+ (phps-mode-parser-sdt--get-list-of-object (nth 4 args))
+ 'lexical-vars
+ (phps-mode-parser-sdt--get-list-of-object (nth 6 args))
+ 'return-type
+ (nth 7 args)
+ 'backup-fn-flags-1
+ (nth 8 args)
+ 'inner-statement-list
+ (nth 10 args)
+ 'backup-fn-flags-2
+ (nth 12 args))))
+ ast-object))
+ phps-mode-parser--table-translations)
+
+;; lexical_vars -> (T_USE "(" lexical_var_list possible_comma ")")
+(puthash
+ 426
+ (lambda(args _terminals)
+ (nth 2 args))
+ phps-mode-parser--table-translations)
;; function_call -> (name argument_list)
(puthash
- [elpa] externals/phps-mode e5df43eea9 187/212: More tweaking of indentation helpers, (continued)
- [elpa] externals/phps-mode e5df43eea9 187/212: More tweaking of indentation helpers, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 413547fbf1 188/212: Searching for previous bracket now steps over optional PHP starting tags, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 4b4a96fda2 208/212: Improved cache filename, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode ef97058a67 184/212: Added more tests for indentation helper functions, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a1af5b11fb 040/212: More work on bookkeeping of class properties via AST, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 4dc07c9041 050/212: Bookkeeping via AST working with assigned variables from array, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 4d226f18cc 048/212: Bookkeeping via AST working with referenced foreach variables, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 5603e6266b 047/212: SDT for array values, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 787d82313e 045/212: Bookkeeping via AST now tracks variables around inline-functions, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a629baba89 053/212: More work on bookkeeping via AST for arrow function variables, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode df0b707a61 044/212: Added parser SDT for inline-function,
Christian Johansson <=
- [elpa] externals/phps-mode 432382eddb 051/212: Added bookkeeping support for global variables in functions, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode bb381d8127 041/212: Bookkeeping of class properties via AST passed test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode e95df1027b 042/212: Reverted old tests for imenu and bookkeeping for lex-analyzer, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a65c8af308 008/212: Extract ast code into separate file and test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 23c001c33f 037/212: Moved parser SDT to separate file, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 261121f096 056/212: Fixed incorrect information in debug output in test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode e8a47de694 052/212: Work on supported arrow functions for bookkeeping via AST, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 5686703a6b 074/212: Passing bookkeeping via AST for $this inside arrow function body inside class method, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a9d0e941df 066/212: Started on SDT for static variables statement, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a8fecdfd68 055/212: Bookkeeping of variables inside arrow functions now working, Christian Johansson, 2022/01/26