docs/api/ast/source/component/helper/pattern-transformer.js.json
{
"type": "File",
"start": 0,
"end": 708,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 41,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 708,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 41,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "FunctionDeclaration",
"start": 72,
"end": 242,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 14,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 81,
"end": 89,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 17
},
"identifierName": "toRegexp"
},
"name": "toRegexp",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 90,
"end": 95,
"loc": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 8,
"column": 23
},
"identifierName": "value"
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 97,
"end": 242,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 14,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 101,
"end": 153,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 54
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 107,
"end": 152,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 53
}
},
"id": {
"type": "Identifier",
"start": 107,
"end": 114,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 15
},
"identifierName": "matches"
},
"name": "matches"
},
"init": {
"type": "CallExpression",
"start": 117,
"end": 152,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 117,
"end": 128,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 117,
"end": 122,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 23
},
"identifierName": "value"
},
"name": "value"
},
"property": {
"type": "Identifier",
"start": 123,
"end": 128,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 29
},
"identifierName": "match"
},
"name": "match"
},
"computed": false
},
"arguments": [
{
"type": "RegExpLiteral",
"start": 129,
"end": 151,
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 52
}
},
"extra": {
"raw": "/^\\/(.+)\\/([gmiyu])*$/"
},
"pattern": "^\\/(.+)\\/([gmiyu])*$",
"flags": ""
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 159,
"end": 198,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 165,
"end": 197,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 40
}
},
"id": {
"type": "ArrayPattern",
"start": 165,
"end": 187,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 30
}
},
"elements": [
null,
{
"type": "Identifier",
"start": 169,
"end": 174,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
},
"identifierName": "regex"
},
"name": "regex"
},
{
"type": "Identifier",
"start": 176,
"end": 185,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 28
},
"identifierName": "modifiers"
},
"name": "modifiers"
}
]
},
"init": {
"type": "Identifier",
"start": 190,
"end": 197,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 40
},
"identifierName": "matches"
},
"name": "matches"
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start": 204,
"end": 240,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 13,
"column": 38
}
},
"argument": {
"type": "NewExpression",
"start": 211,
"end": 239,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 37
}
},
"callee": {
"type": "Identifier",
"start": 215,
"end": 221,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 19
},
"identifierName": "RegExp"
},
"name": "RegExp"
},
"arguments": [
{
"type": "Identifier",
"start": 222,
"end": 227,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 25
},
"identifierName": "regex"
},
"name": "regex"
},
{
"type": "Identifier",
"start": 229,
"end": 238,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 36
},
"identifierName": "modifiers"
},
"name": "modifiers"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {RegExp}\n ",
"start": 15,
"end": 71,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {boolean}\n ",
"start": 244,
"end": 301,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
}
]
},
{
"type": "FunctionDeclaration",
"start": 302,
"end": 368,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 23,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 311,
"end": 319,
"loc": {
"start": {
"line": 21,
"column": 9
},
"end": {
"line": 21,
"column": 17
},
"identifierName": "isRegexp"
},
"name": "isRegexp",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 320,
"end": 325,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"column": 23
},
"identifierName": "value"
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 327,
"end": 368,
"loc": {
"start": {
"line": 21,
"column": 25
},
"end": {
"line": 23,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 331,
"end": 366,
"loc": {
"start": {
"line": 22,
"column": 2
},
"end": {
"line": 22,
"column": 37
}
},
"argument": {
"type": "CallExpression",
"start": 338,
"end": 365,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 338,
"end": 358,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 29
}
},
"object": {
"type": "RegExpLiteral",
"start": 338,
"end": 353,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 24
}
},
"extra": {
"raw": "/\\/.+\\/[a-z]*/i"
},
"pattern": "\\/.+\\/[a-z]*",
"flags": "i"
},
"property": {
"type": "Identifier",
"start": 354,
"end": 358,
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 29
},
"identifierName": "test"
},
"name": "test"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 359,
"end": 364,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 35
},
"identifierName": "value"
},
"name": "value"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {boolean}\n ",
"start": 244,
"end": 301,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {*} value\n *\n * @returns {Promise}\n ",
"start": 370,
"end": 422,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 29,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 423,
"end": 707,
"loc": {
"start": {
"line": 30,
"column": 0
},
"end": {
"line": 40,
"column": 3
}
},
"declaration": {
"type": "ArrowFunctionExpression",
"start": 439,
"end": 705,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 40,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 439,
"end": 444,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 21
},
"identifierName": "value"
},
"name": "value",
"leadingComments": null
}
],
"body": {
"type": "BlockStatement",
"start": 448,
"end": 705,
"loc": {
"start": {
"line": 30,
"column": 25
},
"end": {
"line": 40,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 454,
"end": 703,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 39,
"column": 8
}
},
"argument": {
"type": "CallExpression",
"start": 461,
"end": 702,
"loc": {
"start": {
"line": 31,
"column": 9
},
"end": {
"line": 39,
"column": 7
}
},
"callee": {
"type": "MemberExpression",
"start": 461,
"end": 476,
"loc": {
"start": {
"line": 31,
"column": 9
},
"end": {
"line": 31,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 461,
"end": 468,
"loc": {
"start": {
"line": 31,
"column": 9
},
"end": {
"line": 31,
"column": 16
},
"identifierName": "Promise"
},
"name": "Promise"
},
"property": {
"type": "Identifier",
"start": 469,
"end": 476,
"loc": {
"start": {
"line": 31,
"column": 17
},
"end": {
"line": 31,
"column": 24
},
"identifierName": "resolve"
},
"name": "resolve"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 477,
"end": 701,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 39,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 477,
"end": 579,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 33,
"column": 8
}
},
"object": {
"type": "CallExpression",
"start": 477,
"end": 570,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 32,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 477,
"end": 531,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 32,
"column": 11
}
},
"object": {
"type": "ConditionalExpression",
"start": 478,
"end": 518,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 66
}
},
"test": {
"type": "CallExpression",
"start": 478,
"end": 498,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 478,
"end": 491,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 478,
"end": 483,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 31
},
"identifierName": "Array"
},
"name": "Array"
},
"property": {
"type": "Identifier",
"start": 484,
"end": 491,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 39
},
"identifierName": "isArray"
},
"name": "isArray"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 492,
"end": 497,
"loc": {
"start": {
"line": 31,
"column": 40
},
"end": {
"line": 31,
"column": 45
},
"identifierName": "value"
},
"name": "value"
}
]
},
"consequent": {
"type": "Identifier",
"start": 501,
"end": 506,
"loc": {
"start": {
"line": 31,
"column": 49
},
"end": {
"line": 31,
"column": 54
},
"identifierName": "value"
},
"name": "value"
},
"alternate": {
"type": "ArrayExpression",
"start": 509,
"end": 518,
"loc": {
"start": {
"line": 31,
"column": 57
},
"end": {
"line": 31,
"column": 66
}
},
"elements": [
{
"type": "Identifier",
"start": 511,
"end": 516,
"loc": {
"start": {
"line": 31,
"column": 59
},
"end": {
"line": 31,
"column": 64
},
"identifierName": "value"
},
"name": "value"
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 477
}
},
"property": {
"type": "Identifier",
"start": 525,
"end": 531,
"loc": {
"start": {
"line": 32,
"column": 5
},
"end": {
"line": 32,
"column": 11
},
"identifierName": "filter"
},
"name": "filter"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 532,
"end": 569,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 49
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 532,
"end": 539,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 19
},
"identifierName": "pattern"
},
"name": "pattern"
}
],
"body": {
"type": "UnaryExpression",
"start": 543,
"end": 569,
"loc": {
"start": {
"line": 32,
"column": 23
},
"end": {
"line": 32,
"column": 49
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "UnaryExpression",
"start": 544,
"end": 569,
"loc": {
"start": {
"line": 32,
"column": 24
},
"end": {
"line": 32,
"column": 49
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "CallExpression",
"start": 546,
"end": 568,
"loc": {
"start": {
"line": 32,
"column": 26
},
"end": {
"line": 32,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 546,
"end": 566,
"loc": {
"start": {
"line": 32,
"column": 26
},
"end": {
"line": 32,
"column": 46
}
},
"object": {
"type": "LogicalExpression",
"start": 547,
"end": 560,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 40
}
},
"left": {
"type": "Identifier",
"start": 547,
"end": 554,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 34
},
"identifierName": "pattern"
},
"name": "pattern"
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 558,
"end": 560,
"loc": {
"start": {
"line": 32,
"column": 38
},
"end": {
"line": 32,
"column": 40
}
},
"extra": {
"rawValue": "",
"raw": "''"
},
"value": ""
},
"extra": {
"parenthesized": true,
"parenStart": 546
}
},
"property": {
"type": "Identifier",
"start": 562,
"end": 566,
"loc": {
"start": {
"line": 32,
"column": 42
},
"end": {
"line": 32,
"column": 46
},
"identifierName": "trim"
},
"name": "trim"
},
"computed": false
},
"arguments": [],
"extra": {
"parenthesized": true,
"parenStart": 545
}
},
"extra": {
"parenthesizedArgument": false
}
},
"extra": {
"parenthesizedArgument": false
}
}
}
]
},
"property": {
"type": "Identifier",
"start": 576,
"end": 579,
"loc": {
"start": {
"line": 33,
"column": 5
},
"end": {
"line": 33,
"column": 8
},
"identifierName": "map"
},
"name": "map"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 580,
"end": 700,
"loc": {
"start": {
"line": 33,
"column": 9
},
"end": {
"line": 39,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 580,
"end": 587,
"loc": {
"start": {
"line": 33,
"column": 9
},
"end": {
"line": 33,
"column": 16
},
"identifierName": "pattern"
},
"name": "pattern"
}
],
"body": {
"type": "BlockStatement",
"start": 591,
"end": 700,
"loc": {
"start": {
"line": 33,
"column": 20
},
"end": {
"line": 39,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 599,
"end": 665,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 36,
"column": 7
}
},
"test": {
"type": "CallExpression",
"start": 603,
"end": 620,
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 34,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 603,
"end": 611,
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 34,
"column": 18
},
"identifierName": "isRegexp"
},
"name": "isRegexp"
},
"arguments": [
{
"type": "Identifier",
"start": 612,
"end": 619,
"loc": {
"start": {
"line": 34,
"column": 19
},
"end": {
"line": 34,
"column": 26
},
"identifierName": "pattern"
},
"name": "pattern"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 622,
"end": 665,
"loc": {
"start": {
"line": 34,
"column": 29
},
"end": {
"line": 36,
"column": 7
}
},
"body": [
{
"type": "ReturnStatement",
"start": 632,
"end": 657,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 33
}
},
"argument": {
"type": "CallExpression",
"start": 639,
"end": 656,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 639,
"end": 647,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 23
},
"identifierName": "toRegexp"
},
"name": "toRegexp"
},
"arguments": [
{
"type": "Identifier",
"start": 648,
"end": 655,
"loc": {
"start": {
"line": 35,
"column": 24
},
"end": {
"line": 35,
"column": 31
},
"identifierName": "pattern"
},
"name": "pattern"
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 679,
"end": 694,
"loc": {
"start": {
"line": 38,
"column": 6
},
"end": {
"line": 38,
"column": 21
}
},
"argument": {
"type": "Identifier",
"start": 686,
"end": 693,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 20
},
"identifierName": "pattern"
},
"name": "pattern"
}
}
],
"directives": []
}
}
]
}
]
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {*} value\n *\n * @returns {Promise}\n ",
"start": 370,
"end": 422,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 29,
"column": 3
}
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 438
},
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {*} value\n *\n * @returns {Promise}\n ",
"start": 370,
"end": 422,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 29,
"column": 3
}
}
}
]
}
],
"directives": [
{
"type": "Directive",
"start": 0,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 13
}
},
"value": {
"type": "DirectiveLiteral",
"start": 0,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 12
}
},
"value": "use strict",
"extra": {
"raw": "'use strict'",
"rawValue": "use strict"
},
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {RegExp}\n ",
"start": 15,
"end": 71,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {RegExp}\n ",
"start": 15,
"end": 71,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {boolean}\n ",
"start": 244,
"end": 301,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @param {*} value\n *\n * @returns {Promise}\n ",
"start": 370,
"end": 422,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 29,
"column": 3
}
}
}
],
"tokens": [
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "use strict",
"start": 0,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 12
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 12,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {RegExp}\n ",
"start": 15,
"end": 71,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 72,
"end": 80,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toRegexp",
"start": 81,
"end": 89,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 89,
"end": 90,
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 90,
"end": 95,
"loc": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 8,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 95,
"end": 96,
"loc": {
"start": {
"line": 8,
"column": 23
},
"end": {
"line": 8,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 97,
"end": 98,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 8,
"column": 26
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 101,
"end": 106,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "matches",
"start": 107,
"end": 114,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 115,
"end": 116,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 117,
"end": 122,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 122,
"end": 123,
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "match",
"start": 123,
"end": 128,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 128,
"end": 129,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 30
}
}
},
{
"type": {
"label": "regexp",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": {
"pattern": "^\\/(.+)\\/([gmiyu])*$",
"flags": ""
},
"start": 129,
"end": 151,
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 151,
"end": 152,
"loc": {
"start": {
"line": 9,
"column": 52
},
"end": {
"line": 9,
"column": 53
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 152,
"end": 153,
"loc": {
"start": {
"line": 9,
"column": 53
},
"end": {
"line": 9,
"column": 54
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 159,
"end": 164,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 7
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 165,
"end": 166,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 9
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 167,
"end": 168,
"loc": {
"start": {
"line": 11,
"column": 10
},
"end": {
"line": 11,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "regex",
"start": 169,
"end": 174,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 174,
"end": 175,
"loc": {
"start": {
"line": 11,
"column": 17
},
"end": {
"line": 11,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "modifiers",
"start": 176,
"end": 185,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 186,
"end": 187,
"loc": {
"start": {
"line": 11,
"column": 29
},
"end": {
"line": 11,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 188,
"end": 189,
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "matches",
"start": 190,
"end": 197,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 197,
"end": 198,
"loc": {
"start": {
"line": 11,
"column": 40
},
"end": {
"line": 11,
"column": 41
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 204,
"end": 210,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 13,
"column": 8
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 211,
"end": 214,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "RegExp",
"start": 215,
"end": 221,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 221,
"end": 222,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "regex",
"start": 222,
"end": 227,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 227,
"end": 228,
"loc": {
"start": {
"line": 13,
"column": 25
},
"end": {
"line": 13,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "modifiers",
"start": 229,
"end": 238,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 238,
"end": 239,
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 239,
"end": 240,
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 13,
"column": 38
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 241,
"end": 242,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 1
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @param {string} value\n *\n * @returns {boolean}\n ",
"start": 244,
"end": 301,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 302,
"end": 310,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRegexp",
"start": 311,
"end": 319,
"loc": {
"start": {
"line": 21,
"column": 9
},
"end": {
"line": 21,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 319,
"end": 320,
"loc": {
"start": {
"line": 21,
"column": 17
},
"end": {
"line": 21,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 320,
"end": 325,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 325,
"end": 326,
"loc": {
"start": {
"line": 21,
"column": 23
},
"end": {
"line": 21,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 327,
"end": 328,
"loc": {
"start": {
"line": 21,
"column": 25
},
"end": {
"line": 21,
"column": 26
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 331,
"end": 337,
"loc": {
"start": {
"line": 22,
"column": 2
},
"end": {
"line": 22,
"column": 8
}
}
},
{
"type": {
"label": "regexp",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": {
"pattern": "\\/.+\\/[a-z]*",
"flags": "i"
},
"start": 338,
"end": 353,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 353,
"end": 354,
"loc": {
"start": {
"line": 22,
"column": 24
},
"end": {
"line": 22,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "test",
"start": 354,
"end": 358,
"loc": {
"start": {
"line": 22,
"column": 25
},
"end": {
"line": 22,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 358,
"end": 359,
"loc": {
"start": {
"line": 22,
"column": 29
},
"end": {
"line": 22,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 359,
"end": 364,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 364,
"end": 365,
"loc": {
"start": {
"line": 22,
"column": 35
},
"end": {
"line": 22,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 365,
"end": 366,
"loc": {
"start": {
"line": 22,
"column": 36
},
"end": {
"line": 22,
"column": 37
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 367,
"end": 368,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 23,
"column": 1
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @param {*} value\n *\n * @returns {Promise}\n ",
"start": 370,
"end": 422,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 29,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 423,
"end": 429,
"loc": {
"start": {
"line": 30,
"column": 0
},
"end": {
"line": 30,
"column": 6
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 430,
"end": 437,
"loc": {
"start": {
"line": 30,
"column": 7
},
"end": {
"line": 30,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 438,
"end": 439,
"loc": {
"start": {
"line": 30,
"column": 15
},
"end": {
"line": 30,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 439,
"end": 444,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 21
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 445,
"end": 447,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 448,
"end": 449,
"loc": {
"start": {
"line": 30,
"column": 25
},
"end": {
"line": 30,
"column": 26
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 454,
"end": 460,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 31,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Promise",
"start": 461,
"end": 468,
"loc": {
"start": {
"line": 31,
"column": 9
},
"end": {
"line": 31,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 468,
"end": 469,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "resolve",
"start": 469,
"end": 476,
"loc": {
"start": {
"line": 31,
"column": 17
},
"end": {
"line": 31,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 476,
"end": 477,
"loc": {
"start": {
"line": 31,
"column": 24
},
"end": {
"line": 31,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 477,
"end": 478,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Array",
"start": 478,
"end": 483,
"loc": {
"start": {
"line": 31,
"column": 26
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 483,
"end": 484,
"loc": {
"start": {
"line": 31,
"column": 31
},
"end": {
"line": 31,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isArray",
"start": 484,
"end": 491,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 491,
"end": 492,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 492,
"end": 497,
"loc": {
"start": {
"line": 31,
"column": 40
},
"end": {
"line": 31,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 497,
"end": 498,
"loc": {
"start": {
"line": 31,
"column": 45
},
"end": {
"line": 31,
"column": 46
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 499,
"end": 500,
"loc": {
"start": {
"line": 31,
"column": 47
},
"end": {
"line": 31,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 501,
"end": 506,
"loc": {
"start": {
"line": 31,
"column": 49
},
"end": {
"line": 31,
"column": 54
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 507,
"end": 508,
"loc": {
"start": {
"line": 31,
"column": 55
},
"end": {
"line": 31,
"column": 56
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 509,
"end": 510,
"loc": {
"start": {
"line": 31,
"column": 57
},
"end": {
"line": 31,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 511,
"end": 516,
"loc": {
"start": {
"line": 31,
"column": 59
},
"end": {
"line": 31,
"column": 64
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 517,
"end": 518,
"loc": {
"start": {
"line": 31,
"column": 65
},
"end": {
"line": 31,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 518,
"end": 519,
"loc": {
"start": {
"line": 31,
"column": 66
},
"end": {
"line": 31,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 524,
"end": 525,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "filter",
"start": 525,
"end": 531,
"loc": {
"start": {
"line": 32,
"column": 5
},
"end": {
"line": 32,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 531,
"end": 532,
"loc": {
"start": {
"line": 32,
"column": 11
},
"end": {
"line": 32,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pattern",
"start": 532,
"end": 539,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 19
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 540,
"end": 542,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 22
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 543,
"end": 544,
"loc": {
"start": {
"line": 32,
"column": 23
},
"end": {
"line": 32,
"column": 24
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 544,
"end": 545,
"loc": {
"start": {
"line": 32,
"column": 24
},
"end": {
"line": 32,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 545,
"end": 546,
"loc": {
"start": {
"line": 32,
"column": 25
},
"end": {
"line": 32,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 546,
"end": 547,
"loc": {
"start": {
"line": 32,
"column": 26
},
"end": {
"line": 32,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pattern",
"start": 547,
"end": 554,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 34
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 555,
"end": 557,
"loc": {
"start": {
"line": 32,
"column": 35
},
"end": {
"line": 32,
"column": 37
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 558,
"end": 560,
"loc": {
"start": {
"line": 32,
"column": 38
},
"end": {
"line": 32,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 560,
"end": 561,
"loc": {
"start": {
"line": 32,
"column": 40
},
"end": {
"line": 32,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 561,
"end": 562,
"loc": {
"start": {
"line": 32,
"column": 41
},
"end": {
"line": 32,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 562,
"end": 566,
"loc": {
"start": {
"line": 32,
"column": 42
},
"end": {
"line": 32,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 566,
"end": 567,
"loc": {
"start": {
"line": 32,
"column": 46
},
"end": {
"line": 32,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 567,
"end": 568,
"loc": {
"start": {
"line": 32,
"column": 47
},
"end": {
"line": 32,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 568,
"end": 569,
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 32,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 569,
"end": 570,
"loc": {
"start": {
"line": 32,
"column": 49
},
"end": {
"line": 32,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 575,
"end": 576,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "map",
"start": 576,
"end": 579,
"loc": {
"start": {
"line": 33,
"column": 5
},
"end": {
"line": 33,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 579,
"end": 580,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pattern",
"start": 580,
"end": 587,
"loc": {
"start": {
"line": 33,
"column": 9
},
"end": {
"line": 33,
"column": 16
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 588,
"end": 590,
"loc": {
"start": {
"line": 33,
"column": 17
},
"end": {
"line": 33,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 591,
"end": 592,
"loc": {
"start": {
"line": 33,
"column": 20
},
"end": {
"line": 33,
"column": 21
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 599,
"end": 601,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 602,
"end": 603,
"loc": {
"start": {
"line": 34,
"column": 9
},
"end": {
"line": 34,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRegexp",
"start": 603,
"end": 611,
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 34,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 611,
"end": 612,
"loc": {
"start": {
"line": 34,
"column": 18
},
"end": {
"line": 34,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pattern",
"start": 612,
"end": 619,
"loc": {
"start": {
"line": 34,
"column": 19
},
"end": {
"line": 34,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 619,
"end": 620,
"loc": {
"start": {
"line": 34,
"column": 26
},
"end": {
"line": 34,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 620,
"end": 621,
"loc": {
"start": {
"line": 34,
"column": 27
},
"end": {
"line": 34,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 622,
"end": 623,
"loc": {
"start": {
"line": 34,
"column": 29
},
"end": {
"line": 34,
"column": 30
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 632,
"end": 638,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toRegexp",
"start": 639,
"end": 647,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 647,
"end": 648,
"loc": {
"start": {
"line": 35,
"column": 23
},
"end": {
"line": 35,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pattern",
"start": 648,
"end": 655,
"loc": {
"start": {
"line": 35,
"column": 24
},
"end": {
"line": 35,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 655,
"end": 656,
"loc": {
"start": {
"line": 35,
"column": 31
},
"end": {
"line": 35,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 656,
"end": 657,
"loc": {
"start": {
"line": 35,
"column": 32
},
"end": {
"line": 35,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 664,
"end": 665,
"loc": {
"start": {
"line": 36,
"column": 6
},
"end": {
"line": 36,
"column": 7
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 679,
"end": 685,
"loc": {
"start": {
"line": 38,
"column": 6
},
"end": {
"line": 38,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pattern",
"start": 686,
"end": 693,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 693,
"end": 694,
"loc": {
"start": {
"line": 38,
"column": 20
},
"end": {
"line": 38,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 699,
"end": 700,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 700,
"end": 701,
"loc": {
"start": {
"line": 39,
"column": 5
},
"end": {
"line": 39,
"column": 6
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 701,
"end": 702,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 39,
"column": 7
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 702,
"end": 703,
"loc": {
"start": {
"line": 39,
"column": 7
},
"end": {
"line": 39,
"column": 8
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 704,
"end": 705,
"loc": {
"start": {
"line": 40,
"column": 0
},
"end": {
"line": 40,
"column": 1
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 705,
"end": 706,
"loc": {
"start": {
"line": 40,
"column": 1
},
"end": {
"line": 40,
"column": 2
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 706,
"end": 707,
"loc": {
"start": {
"line": 40,
"column": 2
},
"end": {
"line": 40,
"column": 3
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 708,
"end": 708,
"loc": {
"start": {
"line": 41,
"column": 0
},
"end": {
"line": 41,
"column": 0
}
}
}
]
}