author | hannesw |
Thu, 10 Aug 2017 15:19:17 +0200 | |
changeset 46169 | b385216af0ed |
parent 29543 | 4d9f8f8b69a4 |
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": "9", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
5 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
6 |
"name": "array", |
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": "12", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
10 |
"kind": "ARRAY_ACCESS", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
11 |
"index": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
12 |
"endPosition": "11", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
13 |
"kind": "NUMBER_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
14 |
"value": "1", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
15 |
"startPosition": "10" |
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": "4" |
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": "25", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
22 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
23 |
"name": "array", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
24 |
"startPosition": "20" |
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": "33", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
27 |
"kind": "ARRAY_ACCESS", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
28 |
"index": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
29 |
"endPosition": "32", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
30 |
"kind": "FUNCTION_INVOCATION", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
31 |
"functionSelect": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
32 |
"endPosition": "30", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
33 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
34 |
"name": "test", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
35 |
"startPosition": "26" |
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 |
"arguments": [], |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
38 |
"startPosition": "26" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
39 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
40 |
"startPosition": "20" |
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 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
44 |
"endPosition": "70", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
45 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
46 |
"name": "array", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
47 |
"startPosition": "65" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
48 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
49 |
"endPosition": "76", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
50 |
"kind": "ARRAY_ACCESS", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
51 |
"index": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
52 |
"endPosition": "75", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
53 |
"kind": "NULL_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
54 |
"value": "null", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
55 |
"startPosition": "71" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
56 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
57 |
"startPosition": "65" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
58 |
}, |
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 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
61 |
"endPosition": "119", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
62 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
63 |
"name": "array", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
64 |
"startPosition": "114" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
65 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
66 |
"endPosition": "123", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
67 |
"kind": "ARRAY_ACCESS", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
68 |
"index": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
69 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
70 |
"endPosition": "122", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
71 |
"kind": "NUMBER_LITERAL", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
72 |
"value": "1", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
73 |
"startPosition": "121" |
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": "122", |
46169
b385216af0ed
8185252: Unary minus and plus use wrong node Kind
hannesw
parents:
29543
diff
changeset
|
76 |
"kind": "UNARY_MINUS", |
29543
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
77 |
"startPosition": "120" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
78 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
79 |
"startPosition": "114" |
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 |
"expression": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
83 |
"endPosition": "147", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
84 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
85 |
"name": "array", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
86 |
"startPosition": "142" |
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 |
"endPosition": "159", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
89 |
"kind": "ARRAY_ACCESS", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
90 |
"index": { |
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": "153", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
93 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
94 |
"name": "array", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
95 |
"startPosition": "148" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
96 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
97 |
"endPosition": "158", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
98 |
"kind": "ARRAY_ACCESS", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
99 |
"index": { |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
100 |
"endPosition": "157", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
101 |
"kind": "IDENTIFIER", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
102 |
"name": "NaN", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
103 |
"startPosition": "154" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
104 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
105 |
"startPosition": "148" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
106 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
107 |
"startPosition": "142" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
108 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
109 |
] |