soocrate-core
Version:
this is the core of soocrate application
1,107 lines (1,106 loc) • 1.28 MB
JSON
{
"type": "File",
"start": 0,
"end": 3925,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 107,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3925,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 107,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
},
"identifierName": "expect"
},
"name": "expect"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 30
}
},
"extra": {
"rawValue": "expect.js",
"raw": "'expect.js'"
},
"value": "expect.js"
}
},
{
"type": "ImportDeclaration",
"start": 33,
"end": 59,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 40,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 40,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "Mocha"
},
"name": "Mocha"
}
}
],
"source": {
"type": "StringLiteral",
"start": 51,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 25
}
},
"extra": {
"rawValue": "mocha",
"raw": "'mocha'"
},
"value": "mocha"
}
},
{
"type": "ImportDeclaration",
"start": 63,
"end": 101,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 38
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 70,
"end": 74,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 70,
"end": 74,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 11
},
"identifierName": "LSEQ"
},
"name": "LSEQ"
}
}
],
"source": {
"type": "StringLiteral",
"start": 80,
"end": 100,
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 37
}
},
"extra": {
"rawValue": "../lib/lseqtree.js",
"raw": "'../lib/lseqtree.js'"
},
"value": "../lib/lseqtree.js"
}
},
{
"type": "VariableDeclaration",
"start": 105,
"end": 120,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 15
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 109,
"end": 119,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 14
}
},
"id": {
"type": "Identifier",
"start": 109,
"end": 110,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 5
},
"identifierName": "N"
},
"name": "N"
},
"init": {
"type": "NumericLiteral",
"start": 113,
"end": 119,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 14
}
},
"extra": {
"rawValue": 100000,
"raw": "100000"
},
"value": 100000
}
}
],
"kind": "var"
},
{
"type": "ExpressionStatement",
"start": 124,
"end": 3923,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 106,
"column": 3
}
},
"expression": {
"type": "CallExpression",
"start": 124,
"end": 3922,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 106,
"column": 2
}
},
"callee": {
"type": "Identifier",
"start": 124,
"end": 132,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 8
},
"identifierName": "describe"
},
"name": "describe"
},
"arguments": [
{
"type": "StringLiteral",
"start": 133,
"end": 146,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 22
}
},
"extra": {
"rawValue": "lseqtree.js",
"raw": "'lseqtree.js'"
},
"value": "lseqtree.js"
},
{
"type": "FunctionExpression",
"start": 148,
"end": 3921,
"loc": {
"start": {
"line": 8,
"column": 24
},
"end": {
"line": 106,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 158,
"end": 3921,
"loc": {
"start": {
"line": 8,
"column": 34
},
"end": {
"line": 106,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 171,
"end": 448,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 17,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 171,
"end": 447,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 17,
"column": 6
}
},
"callee": {
"type": "Identifier",
"start": 171,
"end": 179,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 12
},
"identifierName": "describe"
},
"name": "describe"
},
"arguments": [
{
"type": "StringLiteral",
"start": 180,
"end": 193,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 26
}
},
"extra": {
"rawValue": "constructor",
"raw": "'constructor'"
},
"value": "constructor"
},
{
"type": "FunctionExpression",
"start": 195,
"end": 446,
"loc": {
"start": {
"line": 10,
"column": 28
},
"end": {
"line": 17,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 205,
"end": 446,
"loc": {
"start": {
"line": 10,
"column": 38
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 216,
"end": 439,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 16,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 216,
"end": 438,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 16,
"column": 10
}
},
"callee": {
"type": "Identifier",
"start": 216,
"end": 218,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 10
},
"identifierName": "it"
},
"name": "it"
},
"arguments": [
{
"type": "StringLiteral",
"start": 219,
"end": 241,
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 33
}
},
"extra": {
"rawValue": "create an LSEQ array",
"raw": "'create an LSEQ array'"
},
"value": "create an LSEQ array"
},
{
"type": "FunctionExpression",
"start": 243,
"end": 437,
"loc": {
"start": {
"line": 11,
"column": 35
},
"end": {
"line": 16,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 253,
"end": 437,
"loc": {
"start": {
"line": 11,
"column": 45
},
"end": {
"line": 16,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 268,
"end": 292,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 272,
"end": 291,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 272,
"end": 276,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 20
},
"identifierName": "lseq"
},
"name": "lseq"
},
"init": {
"type": "NewExpression",
"start": 279,
"end": 291,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 35
}
},
"callee": {
"type": "Identifier",
"start": 283,
"end": 287,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 31
},
"identifierName": "LSEQ"
},
"name": "LSEQ"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 288,
"end": 290,
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 12,
"column": 34
}
},
"extra": {
"rawValue": 42,
"raw": "42"
},
"value": 42
}
]
}
}
],
"kind": "var"
},
{
"type": "ExpressionStatement",
"start": 306,
"end": 336,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 42
}
},
"expression": {
"type": "CallExpression",
"start": 306,
"end": 335,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 306,
"end": 331,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 306,
"end": 327,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 306,
"end": 324,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 30
}
},
"object": {
"type": "CallExpression",
"start": 306,
"end": 321,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 306,
"end": 312,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 18
},
"identifierName": "expect"
},
"name": "expect"
},
"arguments": [
{
"type": "MemberExpression",
"start": 313,
"end": 320,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 313,
"end": 317,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 23
},
"identifierName": "lseq"
},
"name": "lseq"
},
"property": {
"type": "Identifier",
"start": 318,
"end": 320,
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 26
},
"identifierName": "_s"
},
"name": "_s"
},
"computed": false
}
]
},
"property": {
"type": "Identifier",
"start": 322,
"end": 324,
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 30
},
"identifierName": "to"
},
"name": "to"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 325,
"end": 327,
"loc": {
"start": {
"line": 13,
"column": 31
},
"end": {
"line": 13,
"column": 33
},
"identifierName": "be"
},
"name": "be"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 328,
"end": 331,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 13,
"column": 37
},
"identifierName": "eql"
},
"name": "eql"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 332,
"end": 334,
"loc": {
"start": {
"line": 13,
"column": 38
},
"end": {
"line": 13,
"column": 40
}
},
"extra": {
"rawValue": 42,
"raw": "42"
},
"value": 42
}
]
}
},
{
"type": "ExpressionStatement",
"start": 350,
"end": 379,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 41
}
},
"expression": {
"type": "CallExpression",
"start": 350,
"end": 378,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
"start": 350,
"end": 375,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 350,
"end": 371,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 350,
"end": 368,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 30
}
},
"object": {
"type": "CallExpression",
"start": 350,
"end": 365,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 350,
"end": 356,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 18
},
"identifierName": "expect"
},
"name": "expect"
},
"arguments": [
{
"type": "MemberExpression",
"start": 357,
"end": 364,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 357,
"end": 361,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 23
},
"identifierName": "lseq"
},
"name": "lseq"
},
"property": {
"type": "Identifier",
"start": 362,
"end": 364,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 26
},
"identifierName": "_c"
},
"name": "_c"
},
"computed": false
}
]
},
"property": {
"type": "Identifier",
"start": 366,
"end": 368,
"loc": {
"start": {