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 |
"endPosition": "21", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
4 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
5 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
6 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
7 |
"endPosition": "22", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
8 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
9 |
"statements": [], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
10 |
"startPosition": "21" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
11 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
12 |
"strict": "false", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
13 |
"startPosition": "21", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
14 |
"parameters": [] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
15 |
}, |
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 |
"endPosition": "48", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
18 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
19 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
20 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
21 |
"endPosition": "49", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
22 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
23 |
"statements": [], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
24 |
"startPosition": "48" |
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 |
"strict": "false", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
27 |
"startPosition": "48", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
28 |
"parameters": [ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
29 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
30 |
"endPosition": "43", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
31 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
32 |
"name": "x", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
33 |
"startPosition": "42" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
34 |
}, |
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 |
"endPosition": "46", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
37 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
38 |
"name": "y", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
39 |
"startPosition": "45" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
40 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
41 |
] |
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 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
44 |
"endPosition": "75", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
45 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
46 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
47 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
48 |
"endPosition": "87", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
49 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
50 |
"statements": [ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
51 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
52 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
53 |
"endPosition": "87", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
54 |
"kind": "STRING_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
55 |
"value": "use strict", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
56 |
"startPosition": "77" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
57 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
58 |
"endPosition": "87", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
59 |
"kind": "EXPRESSION_STATEMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
60 |
"startPosition": "77" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
61 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
62 |
], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
63 |
"startPosition": "75" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
64 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
65 |
"strict": "true", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
66 |
"startPosition": "75", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
67 |
"parameters": [ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
68 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
69 |
"endPosition": "70", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
70 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
71 |
"name": "x", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
72 |
"startPosition": "69" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
73 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
74 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
75 |
"endPosition": "73", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
76 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
77 |
"name": "y", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
78 |
"startPosition": "72" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
79 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
80 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
81 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
82 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
83 |
"endPosition": "110", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
84 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
85 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
86 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
87 |
"endPosition": "144", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
88 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
89 |
"statements": [ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
90 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
91 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
92 |
"endPosition": "130", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
93 |
"kind": "FUNCTION_EXPRESSION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
94 |
"name": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
95 |
"body": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
96 |
"endPosition": "142", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
97 |
"kind": "BLOCK", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
98 |
"statements": [ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
99 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
100 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
101 |
"endPosition": "142", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
102 |
"kind": "STRING_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
103 |
"value": "use strict", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
104 |
"startPosition": "132" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
105 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
106 |
"endPosition": "142", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
107 |
"kind": "EXPRESSION_STATEMENT", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
108 |
"startPosition": "132" |
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 |
], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
111 |
"startPosition": "130" |
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 |
"strict": "true", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
114 |
"startPosition": "130", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
115 |
"parameters": [] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
116 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
117 |
"endPosition": "144", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
118 |
"kind": "RETURN", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
119 |
"startPosition": "112" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
120 |
} |
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 |
"startPosition": "110" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
123 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
124 |
"strict": "false", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
125 |
"startPosition": "110", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
126 |
"parameters": [] |
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 |
] |