File tree Expand file tree Collapse file tree 3 files changed +123
-0
lines changed Expand file tree Collapse file tree 3 files changed +123
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 , ticks=1 );
4+
5+ echo "This can be parsed \n" ;
Original file line number Diff line number Diff line change 1+ []
Original file line number Diff line number Diff line change 1+ {
2+ "SourceFileNode": {
3+ "statementList": [
4+ {
5+ "InlineHtml": {
6+ "scriptSectionEndTag": null,
7+ "text": null,
8+ "scriptSectionStartTag": {
9+ "kind": "ScriptSectionStartTag",
10+ "textLength": 7
11+ }
12+ }
13+ },
14+ {
15+ "DeclareStatement": {
16+ "declareKeyword": {
17+ "kind": "DeclareKeyword",
18+ "textLength": 7
19+ },
20+ "openParen": {
21+ "kind": "OpenParenToken",
22+ "textLength": 1
23+ },
24+ "declareDirectives": {
25+ "DeclareDirectiveList": {
26+ "children": [
27+ {
28+ "DeclareDirective": {
29+ "name": {
30+ "kind": "Name",
31+ "textLength": 12
32+ },
33+ "equals": {
34+ "kind": "EqualsToken",
35+ "textLength": 1
36+ },
37+ "literal": {
38+ "kind": "IntegerLiteralToken",
39+ "textLength": 1
40+ }
41+ }
42+ },
43+ {
44+ "kind": "CommaToken",
45+ "textLength": 1
46+ },
47+ {
48+ "DeclareDirective": {
49+ "name": {
50+ "kind": "Name",
51+ "textLength": 5
52+ },
53+ "equals": {
54+ "kind": "EqualsToken",
55+ "textLength": 1
56+ },
57+ "literal": {
58+ "kind": "IntegerLiteralToken",
59+ "textLength": 1
60+ }
61+ }
62+ }
63+ ]
64+ }
65+ },
66+ "closeParen": {
67+ "kind": "CloseParenToken",
68+ "textLength": 1
69+ },
70+ "colon": null,
71+ "statements": null,
72+ "enddeclareKeyword": null,
73+ "semicolon": {
74+ "kind": "SemicolonToken",
75+ "textLength": 1
76+ }
77+ }
78+ },
79+ {
80+ "ExpressionStatement": {
81+ "expression": {
82+ "EchoExpression": {
83+ "echoKeyword": {
84+ "kind": "EchoKeyword",
85+ "textLength": 4
86+ },
87+ "expressions": {
88+ "ExpressionList": {
89+ "children": [
90+ {
91+ "StringLiteral": {
92+ "startQuote": null,
93+ "children": {
94+ "kind": "StringLiteralToken",
95+ "textLength": 22
96+ },
97+ "endQuote": null
98+ }
99+ }
100+ ]
101+ }
102+ }
103+ }
104+ },
105+ "semicolon": {
106+ "kind": "SemicolonToken",
107+ "textLength": 1
108+ }
109+ }
110+ }
111+ ],
112+ "endOfFileToken": {
113+ "kind": "EndOfFileToken",
114+ "textLength": 0
115+ }
116+ }
117+ }
You can’t perform that action at this time.
0 commit comments