@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,173 lines (1,172 loc) • 201 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "MapPolyfill",
"range": [
11,
22
],
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 22
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "MapPolyfill",
"range": [
53,
64
],
"loc": {
"start": {
"line": 2,
"column": 13
},
"end": {
"line": 2,
"column": 24
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
77,
81
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "size",
"range": [
82,
86
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 17
}
}
},
"range": [
77,
86
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 17
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
89,
90
],
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 21
}
}
},
"range": [
77,
90
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 21
}
}
},
"range": [
77,
91
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 22
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
100,
104
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "_values",
"range": [
105,
112
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 20
}
}
},
"range": [
100,
112
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 20
}
}
},
"right": {
"type": "ArrayExpression",
"elements": [],
"range": [
115,
117
],
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 25
}
}
},
"range": [
100,
117
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 25
}
}
},
"range": [
100,
118
],
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
127,
131
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "_keys",
"range": [
132,
137
],
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 18
}
}
},
"range": [
127,
137
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 18
}
}
},
"right": {
"type": "ArrayExpression",
"elements": [],
"range": [
140,
142
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 23
}
}
},
"range": [
127,
142
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 23
}
}
},
"range": [
127,
143
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 24
}
}
}
],
"range": [
67,
149
],
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 6,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
44,
149
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 6,
"column": 5
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "MapPolyfill",
"range": [
154,
165
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
166,
175
],
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 25
}
}
},
"range": [
154,
175
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "get",
"range": [
176,
179
],
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 29
}
}
},
"range": [
154,
179
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 29
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "key",
"range": [
192,
195
],
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 45
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "i",
"range": [
211,
212
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 13
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
215,
219
],
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"name": "_keys",
"range": [
220,
225
],
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
215,
225
],
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "indexOf",
"range": [
226,
233
],
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 34
}
}
},
"range": [
215,
233
],
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 34
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "key",
"range": [
234,
237
],
"loc": {
"start": {
"line": 8,
"column": 35
},
"end": {
"line": 8,
"column": 38
}
}
}
],
"range": [
215,
238
],
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 39
}
}
},
"range": [
211,
238
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 39
}
}
}
],
"kind": "var",
"range": [
207,
239
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 40
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "ConditionalExpression",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "i",
"range": [
255,
256
],
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 16
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
262,
263
],
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 9,
"column": 23
}
}
},
"prefix": true,
"range": [
261,
263
],
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 23
}
}
},
"range": [
255,
263
],
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 23
}
}
},
"consequent": {
"type": "Identifier",
"name": "undefined",
"range": [
266,
275
],
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 35
}
}
},
"alternate": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
278,
282
],
"loc": {
"start": {
"line": 9,
"column": 38
},
"end": {
"line": 9,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"name": "_values",
"range": [
283,
290
],
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 50
}
}
},
"range": [
278,
290
],
"loc": {
"start": {
"line": 9,
"column": 38
},
"end": {
"line": 9,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"name": "i",
"range": [
291,
292
],
"loc": {
"start": {
"line": 9,
"column": 51
},
"end": {
"line": 9,
"column": 52
}
}
},
"range": [
278,
293
],
"loc": {
"start": {
"line": 9,
"column": 38
},
"end": {
"line": 9,
"column": 53
}
}
},
"range": [
255,
293
],
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 53
}
}
},
"range": [
248,
294
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 54
}
}
}
],
"range": [
197,
300
],
"loc": {
"start": {
"line": 7,
"column": 47
},
"end": {
"line": 10,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
182,
300
],
"loc": {
"start": {
"line": 7,
"column": 32
},
"end": {
"line": 10,
"column": 5
}
}
},
"range": [
154,
300
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 10,
"column": 5
}
}
},
"range": [
154,
301
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 10,
"column": 6
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "MapPolyfill",
"range": [
306,
317
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "prototype",
"range": [
318,
327
],
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 25
}
}
},
"range": [
306,
327
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "set",
"range": [
328,
331
],
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 11,
"column": 29
}
}
},
"range": [
306,
331
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 29
}
}
},
"right": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "key",
"range": [
344,
347
],
"loc": {
"start": {
"line": 11,
"column": 42
},
"end": {
"line": 11,
"column": 45
}
}
},
{
"type": "Identifier",
"name": "value",
"range": [
349,
354
],
"loc": {
"start": {
"line": 11,
"column": 47
},
"end": {
"line": 11,
"column": 52
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "i",
"range": [
370,
371
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 13
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
374,
378
],
"loc": {
"start": {
"line": 12,