author | hannesw |
Wed, 27 Apr 2016 15:50:33 +0200 | |
changeset 37732 | 3673fec68d16 |
parent 29543 | 4d9f8f8b69a4 |
child 39662 | e2b36a3779b9 |
permissions | -rw-r--r-- |
29543
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
1 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
2 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
3 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
4 |
"endPosition": "5", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
5 |
"kind": "NUMBER_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
6 |
"value": "1", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
7 |
"startPosition": "4" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
8 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
9 |
"endPosition": "5", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
10 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
11 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
12 |
"endPosition": "1", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
13 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
14 |
"name": "a", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
15 |
"startPosition": "0" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
16 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
17 |
"startPosition": "0" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
18 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
19 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
20 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
21 |
"endPosition": "11", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
22 |
"kind": "NUMBER_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
23 |
"value": "2", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
24 |
"startPosition": "10" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
25 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
26 |
"endPosition": "11", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
27 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
28 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
29 |
"endPosition": "7", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
30 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
31 |
"name": "b", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
32 |
"startPosition": "6" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
33 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
34 |
"startPosition": "6" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
35 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
36 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
37 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
38 |
"endPosition": "19", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
39 |
"kind": "OBJECT_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
40 |
"startPosition": "17", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
41 |
"properties": [] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
42 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
43 |
"endPosition": "19", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
44 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
45 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
46 |
"endPosition": "14", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
47 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
48 |
"name": "c", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
49 |
"startPosition": "13" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
50 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
51 |
"startPosition": "13" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
52 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
53 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
54 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
55 |
"endPosition": "33", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
56 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
57 |
"name": "undefined", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
58 |
"startPosition": "24" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
59 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
60 |
"endPosition": "33", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
61 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
62 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
63 |
"endPosition": "21", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
64 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
65 |
"name": "d", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
66 |
"startPosition": "20" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
67 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
68 |
"startPosition": "20" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
69 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
70 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
71 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
72 |
"endPosition": "41", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
73 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
74 |
"name": "NaN", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
75 |
"startPosition": "38" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
76 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
77 |
"endPosition": "41", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
78 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
79 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
80 |
"endPosition": "35", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
81 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
82 |
"name": "e", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
83 |
"startPosition": "34" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
84 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
85 |
"startPosition": "34" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
86 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
87 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
88 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
89 |
"endPosition": "58", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
90 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
91 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
92 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
93 |
"endPosition": "59", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
94 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
95 |
"statements": [], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
96 |
"startPosition": "58" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
97 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
98 |
"strict": "false", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
99 |
"startPosition": "58", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
100 |
"parameters": [] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
101 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
102 |
"endPosition": "58", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
103 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
104 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
105 |
"endPosition": "43", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
106 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
107 |
"name": "f", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
108 |
"startPosition": "42" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
109 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
110 |
"startPosition": "42" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
111 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
112 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
113 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
114 |
"endPosition": "77", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
115 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
116 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
117 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
118 |
"endPosition": "91", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
119 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
120 |
"statements": [ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
121 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
122 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
123 |
"endPosition": "89", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
124 |
"kind": "STRING_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
125 |
"value": "use strict", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
126 |
"startPosition": "79" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
127 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
128 |
"endPosition": "89", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
129 |
"kind": "EXPRESSION_STATEMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
130 |
"startPosition": "79" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
131 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
132 |
], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
133 |
"startPosition": "77" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
134 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
135 |
"strict": "true", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
136 |
"startPosition": "77", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
137 |
"parameters": [] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
138 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
139 |
"endPosition": "77", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
140 |
"kind": "ASSIGNMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
141 |
"variable": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
142 |
"endPosition": "62", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
143 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
144 |
"name": "g", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
145 |
"startPosition": "61" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
146 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
147 |
"startPosition": "61" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
148 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
149 |
] |