You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/AST.md
+69-10Lines changed: 69 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@
41
41
-[Inline](#inline)
42
42
-[Magic](#magic)
43
43
-[Shell](#shell)
44
+
-[Nowdoc](#nowdoc)
45
+
-[Encapsed](#encapsed)
44
46
-[Statement](#statement)
45
47
-[Eval](#eval)
46
48
-[Exit](#exit)
@@ -486,6 +488,53 @@ Defines system based call
486
488
487
489
Defines an empty check call
488
490
491
+
# Encapsed
492
+
493
+
**Extends Literal**
494
+
495
+
Defines an encapsed string (contains expressions)
496
+
497
+
**Properties**
498
+
499
+
-`type`**[String](#string)** Defines the type of encapsed string (shell, heredoc, string)
500
+
-`label`**([String](#string)\|[Null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null))** The heredoc label, defined only when the type is heredoc
501
+
502
+
## TYPE_STRING
503
+
504
+
The node is a double quote string :
505
+
506
+
```php
507
+
<?php
508
+
echo "hello $world";
509
+
```
510
+
511
+
Type: [String](#string)
512
+
513
+
## TYPE_SHELL
514
+
515
+
The node is a shell execute string :
516
+
517
+
```php
518
+
<?php
519
+
echo `ls -larth $path`;
520
+
```
521
+
522
+
Type: [String](#string)
523
+
524
+
## TYPE_HEREDOC
525
+
526
+
The node is a shell execute string :
527
+
528
+
```php
529
+
<?php
530
+
echo <<<STR
531
+
Hello$world
532
+
STR
533
+
;
534
+
```
535
+
536
+
Type:[String](#string)
537
+
489
538
#Entry
490
539
491
540
**ExtendsNode**
@@ -812,6 +861,26 @@ Helper for extending the Node class
812
861
813
862
Returns **[Function](#function)**
814
863
864
+
# String
865
+
866
+
**Extends Literal**
867
+
868
+
Defines a nowdoc string
869
+
870
+
**Properties**
871
+
872
+
- `label` **[String](#string)**
873
+
874
+
# String
875
+
876
+
**Extends Literal**
877
+
878
+
Defines a string (simple ou double quoted) - chars are already escaped
0 commit comments