@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
906 lines • 28.2 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "distinctUntilChanged",
"range": [
9,
29
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 29
}
}
},
"imported": {
"type": "Identifier",
"name": "distinctUntilChanged",
"range": [
9,
29
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 29
}
}
},
"range": [
9,
29
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 29
}
}
}
],
"source": {
"type": "Literal",
"value": "./distinctUntilChanged",
"raw": "'./distinctUntilChanged'",
"range": [
37,
61
],
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 61
}
}
},
"range": [
0,
62
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 62
}
},
"trailingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
63,
99
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "distinctUntilKeyChanged",
"range": [
116,
139
],
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 39
}
}
},
"params": [
{
"type": "Identifier",
"name": "key",
"range": [
140,
143
],
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 43
}
}
},
{
"type": "Identifier",
"name": "compare",
"range": [
145,
152
],
"loc": {
"start": {
"line": 3,
"column": 45
},
"end": {
"line": 3,
"column": 52
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "distinctUntilChanged",
"range": [
167,
187
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "call",
"range": [
188,
192
],
"loc": {
"start": {
"line": 4,
"column": 32
},
"end": {
"line": 4,
"column": 36
}
}
},
"range": [
167,
192
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 36
}
}
},
"arguments": [
{
"type": "ThisExpression",
"range": [
193,
197
],
"loc": {
"start": {
"line": 4,
"column": 37
},
"end": {
"line": 4,
"column": 41
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "x",
"range": [
209,
210
],
"loc": {
"start": {
"line": 4,
"column": 53
},
"end": {
"line": 4,
"column": 54
}
}
},
{
"type": "Identifier",
"name": "y",
"range": [
212,
213
],
"loc": {
"start": {
"line": 4,
"column": 56
},
"end": {
"line": 4,
"column": 57
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "Identifier",
"name": "compare",
"range": [
229,
236
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 19
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "compare",
"range": [
259,
266
],
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 26
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "x",
"range": [
267,
268
],
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"name": "key",
"range": [
269,
272
],
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 32
}
}
},
"range": [
267,
273
],
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 33
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "y",
"range": [
275,
276
],
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "key",
"range": [
277,
280
],
"loc": {
"start": {
"line": 6,
"column": 37
},
"end": {
"line": 6,
"column": 40
}
}
},
"range": [
275,
281
],
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 41
}
}
}
],
"range": [
259,
282
],
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 42
}
}
},
"range": [
252,
283
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 43
}
}
}
],
"range": [
238,
293
],
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 7,
"column": 9
}
}
},
"alternate": null,
"range": [
225,
293
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 7,
"column": 9
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "x",
"range": [
309,
310
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "key",
"range": [
311,
314
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 20
}
}
},
"range": [
309,
315
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 21
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "y",
"range": [
320,
321
],
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "key",
"range": [
322,
325
],
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 31
}
}
},
"range": [
320,
326
],
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 32
}
}
},
"range": [
309,
326
],
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 32
}
}
},
"range": [
302,
327
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 33
}
}
}
],
"range": [
215,
333
],
"loc": {
"start": {
"line": 4,
"column": 59
},
"end": {
"line": 9,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
199,
333
],
"loc": {
"start": {
"line": 4,
"column": 43
},
"end": {
"line": 9,
"column": 5
}
}
}
],
"range": [
167,
334
],
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 9,
"column": 6
}
}
},
"range": [
160,
335
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 9,
"column": 7
}
}
}
],
"range": [
154,
337
],
"loc": {
"start": {
"line": 3,
"column": 54
},
"end": {
"line": 10,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
107,
337
],
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 10,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
63,
99
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "# sourceMappingURL=distinctUntilKeyChanged.js.map",
"range": [
338,
389
],
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 51
}
}
}
]
},
"specifiers": [],
"source": null,
"range": [
100,
337
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 10,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
63,
99
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "# sourceMappingURL=distinctUntilKeyChanged.js.map",
"range": [
338,
389
],
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 51
}
}
}
]
}
],
"sourceType": "module",
"range": [
0,
337
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 1
}
},
"comments": [
{
"type": "Block",
"value": " tslint:disable:max-line-length ",
"range": [
63,
99
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 36
}
}
},
{
"type": "Line",
"value": "# sourceMappingURL=distinctUntilKeyChanged.js.map",
"range": [
338,
389
],
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 51
}
}
}
]
}