emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 7bb676dc8b 076/135: Bookkeeping for anonymous


From: Christian Johansson
Subject: [elpa] externals/phps-mode 7bb676dc8b 076/135: Bookkeeping for anonymous function passing
Date: Sun, 29 Jan 2023 03:11:06 -0500 (EST)

branch: externals/phps-mode
commit 7bb676dc8b971550914060404627877dc0ee7e9d
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Bookkeeping for anonymous function passing
---
 test/phps-mode-test-ast.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/phps-mode-test-ast.el b/test/phps-mode-test-ast.el
index 6248d3ae05..a824a3a67a 100644
--- a/test/phps-mode-test-ast.el
+++ b/test/phps-mode-test-ast.el
@@ -256,7 +256,7 @@
   (phps-mode-test-ast--should-bookkeep
    "<?php\n\n$example = function ($test) {\n    if ($test) {\n        echo 
'Hit';\n    }\n    if ($example) {\n        echo 'Miss';\n    }\n};\n$example2 
= function ($test2) use ($example) {\n    if ($test2) {\n        echo 'Hit';\n  
  }\n    if ($example) {\n        echo 'Hit';\n    }\n    if ($example2) {\n    
    echo 'Miss';\n    }\n    if ($example3) {\n        echo 'Miss';\n    
}\n};\n$example3 = function ($test3) use ($example4) {\n    if ($test3) {\n     
   echo 'Hit';\n    }\n   [...]
    "Bookkeeping of anonymous function variable assignments and lexical vars"
-   '((" id $example" ((8 16))) (" anonymous function1 id $test" ((29 34))) 
((29 34) 1) ((89 97) 0) ((46 51) 1) ((8 16) 1) (" id $example2" ((131 140))) (" 
anonymous function2 id $example" ((166 174))) (" anonymous function2 id $test2" 
((153 159))) ((166 174) 1) ((153 159) 1) ((324 333) 0) ((276 285) 0) ((230 238) 
1) ((186 192) 1) ((131 140) 1) (" id $example3" ((367 376))) (" anonymous 
function3 id $example4" ((402 411))) (" anonymous function3 id $test3" ((389 
395))) ((402 411) 0) ((389 [...]
+   '((" id $example" ((8 16))) (" anonymous 1 id $test" ((29 34))) ((29 34) 1) 
((89 97) 0) ((46 51) 1) ((8 16) 1) (" id $example2" ((131 140))) (" anonymous 2 
id $example" ((166 174))) (" anonymous 2 id $test2" ((153 159))) ((166 174) 1) 
((153 159) 1) ((324 333) 0) ((276 285) 0) ((230 238) 1) ((186 192) 1) ((131 
140) 1) (" id $example3" ((367 376))) (" anonymous 3 id $example4" ((402 411))) 
(" anonymous 3 id $test3" ((389 395))) ((402 411) 0) ((389 395) 1) ((467 476) 
1) ((423 429) 1) ((3 [...]
 
   (phps-mode-test-ast--should-bookkeep
    "<?php\nclass myClass {\n    function random() {}\n    function 
__construct()\n    {\n        $this->random();\n        $this->random['abc'] = 
123;\n    }\n}"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]