-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.json
106 lines (106 loc) 路 4.26 KB
/
output.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"type": "File",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"program": {
"type": "Program",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"expression": {
"type": "MatchExpression",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"discriminant": {
"type": "Identifier",
"start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10},"identifierName":"foo"},
"name": "foo"
},
"clauses": [
{
"type": "MatchClause",
"start":16,"end":34,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":20}},
"test": {
"type": "ExpressionMatchPattern",
"start":21,"end":31,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":17}},
"expression": {
"type": "BinaryExpression",
"start":23,"end":30,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":16}},
"extra": {
"parenthesized": true,
"parenStart": 22
},
"left": {
"type": "Identifier",
"start":23,"end":26,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":12},"identifierName":"foo"},
"name": "foo"
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start":29,"end":30,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":16}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
},
"consequent": {
"type": "BlockStatement",
"start":32,"end":34,"loc":{"start":{"line":2,"column":18},"end":{"line":2,"column":20}},
"body": [],
"directives": []
}
},
{
"type": "MatchClause",
"start":37,"end":60,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":25}},
"test": {
"type": "BinaryMatchPattern",
"start":43,"end":56,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":21}},
"left": {
"type": "ExpressionMatchPattern",
"start":43,"end":48,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":13}},
"expression": {
"type": "Identifier",
"start":45,"end":47,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":12},"identifierName":"LF"},
"extra": {
"parenthesized": true,
"parenStart": 44
},
"name": "LF"
}
},
"operator": "or",
"right": {
"type": "ExpressionMatchPattern",
"start":51,"end":56,"loc":{"start":{"line":3,"column":16},"end":{"line":3,"column":21}},
"expression": {
"type": "Identifier",
"start":53,"end":55,"loc":{"start":{"line":3,"column":18},"end":{"line":3,"column":20},"identifierName":"CR"},
"extra": {
"parenthesized": true,
"parenStart": 52
},
"name": "CR"
}
}
},
"consequent": {
"type": "BlockStatement",
"start":58,"end":60,"loc":{"start":{"line":3,"column":23},"end":{"line":3,"column":25}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": []
}
}