Fri, 21 Feb 2014 17:58:33 +0530
8033745: Reflect upon Nashorn reflection
Reviewed-by: ahgross, attila, jlaskey
1 {
2 "type": "Program",
3 "body": [
4 {
5 "type": "WhileStatement",
6 "test": {
7 "type": "Literal",
8 "value": true
9 },
10 "body": {
11 "type": "BlockStatement",
12 "body": [
13 {
14 "type": "BreakStatement",
15 "label": null
16 }
17 ]
18 }
19 }
20 ]
21 }
22 {
23 "type": "Program",
24 "body": [
25 {
26 "type": "LabeledStatement",
27 "label": {
28 "type": "Identifier",
29 "name": "loop"
30 },
31 "body": {
32 "type": "BlockStatement",
33 "body": [
34 {
35 "type": "WhileStatement",
36 "test": {
37 "type": "Literal",
38 "value": true
39 },
40 "body": {
41 "type": "BlockStatement",
42 "body": [
43 {
44 "type": "BreakStatement",
45 "label": {
46 "type": "Identifier",
47 "name": "loop"
48 }
49 }
50 ]
51 }
52 }
53 ]
54 }
55 }
56 ]
57 }
58 {
59 "type": "Program",
60 "body": [
61 {
62 "type": "LabeledStatement",
63 "label": {
64 "type": "Identifier",
65 "name": "loop"
66 },
67 "body": {
68 "type": "BlockStatement",
69 "body": [
70 {
71 "type": "ForStatement",
72 "init": null,
73 "test": null,
74 "update": null,
75 "body": {
76 "type": "BlockStatement",
77 "body": [
78 {
79 "type": "BreakStatement",
80 "label": {
81 "type": "Identifier",
82 "name": "loop"
83 }
84 }
85 ]
86 }
87 }
88 ]
89 }
90 }
91 ]
92 }