UNPKG

soocrate-core

Version:

this is the core of soocrate application

1,303 lines (1,302 loc) 1.32 MB
{ "type": "File", "start": 0, "end": 4556, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 120, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 4556, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 120, "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": 61, "end": 85, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 24 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 68, "end": 70, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 9 } }, "local": { "type": "Identifier", "start": 68, "end": 70, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 9 }, "identifierName": "BI" }, "name": "BI" } } ], "source": { "type": "StringLiteral", "start": 76, "end": 84, "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 3, "column": 23 } }, "extra": { "rawValue": "BigInt", "raw": "'BigInt'" }, "value": "BigInt" } }, { "type": "ImportDeclaration", "start": 89, "end": 123, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 34 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 96, "end": 100, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 11 } }, "local": { "type": "Identifier", "start": 96, "end": 100, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 11 }, "identifierName": "Base" }, "name": "Base" } } ], "source": { "type": "StringLiteral", "start": 106, "end": 122, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 33 } }, "extra": { "rawValue": "../lib/base.js", "raw": "'../lib/base.js'" }, "value": "../lib/base.js" } }, { "type": "ImportDeclaration", "start": 125, "end": 163, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 38 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 132, "end": 134, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 9 } }, "local": { "type": "Identifier", "start": 132, "end": 134, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 9 }, "identifierName": "ID" }, "name": "ID" } } ], "source": { "type": "StringLiteral", "start": 140, "end": 162, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 37 } }, "extra": { "rawValue": "../lib/identifier.js", "raw": "'../lib/identifier.js'" }, "value": "../lib/identifier.js" } }, { "type": "ImportDeclaration", "start": 165, "end": 207, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 172, "end": 180, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 15 } }, "local": { "type": "Identifier", "start": 172, "end": 180, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 15 }, "identifierName": "LSEQNode" }, "name": "LSEQNode" } } ], "source": { "type": "StringLiteral", "start": 186, "end": 206, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 41 } }, "extra": { "rawValue": "../lib/lseqnode.js", "raw": "'../lib/lseqnode.js'" }, "value": "../lib/lseqnode.js" } }, { "type": "ImportDeclaration", "start": 209, "end": 247, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 38 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 216, "end": 222, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 13 } }, "local": { "type": "Identifier", "start": 216, "end": 222, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 13 }, "identifierName": "Triple" }, "name": "Triple" } } ], "source": { "type": "StringLiteral", "start": 228, "end": 246, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 37 } }, "extra": { "rawValue": "../lib/triple.js", "raw": "'../lib/triple.js'" }, "value": "../lib/triple.js" } }, { "type": "ExpressionStatement", "start": 251, "end": 4554, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 119, "column": 3 } }, "expression": { "type": "CallExpression", "start": 251, "end": 4553, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 119, "column": 2 } }, "callee": { "type": "Identifier", "start": 251, "end": 259, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 8 }, "identifierName": "describe" }, "name": "describe" }, "arguments": [ { "type": "StringLiteral", "start": 260, "end": 269, "loc": { "start": { "line": 10, "column": 9 }, "end": { "line": 10, "column": 18 } }, "extra": { "rawValue": "base.js", "raw": "'base.js'" }, "value": "base.js" }, { "type": "FunctionExpression", "start": 271, "end": 4552, "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 119, "column": 1 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 282, "end": 4552, "loc": { "start": { "line": 10, "column": 31 }, "end": { "line": 119, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 295, "end": 480, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 17, "column": 7 } }, "expression": { "type": "CallExpression", "start": 295, "end": 479, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 17, "column": 6 } }, "callee": { "type": "Identifier", "start": 295, "end": 303, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 12 }, "identifierName": "describe" }, "name": "describe" }, "arguments": [ { "type": "StringLiteral", "start": 304, "end": 310, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 19 } }, "extra": { "rawValue": "base", "raw": "'base'" }, "value": "base" }, { "type": "FunctionExpression", "start": 312, "end": 478, "loc": { "start": { "line": 12, "column": 21 }, "end": { "line": 17, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 322, "end": 478, "loc": { "start": { "line": 12, "column": 31 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 333, "end": 471, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 16, "column": 11 } }, "expression": { "type": "CallExpression", "start": 333, "end": 470, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 16, "column": 10 } }, "callee": { "type": "Identifier", "start": 333, "end": 335, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 10 }, "identifierName": "it" }, "name": "it" }, "arguments": [ { "type": "StringLiteral", "start": 336, "end": 359, "loc": { "start": { "line": 13, "column": 11 }, "end": { "line": 13, "column": 34 } }, "extra": { "rawValue": "trivial test of setup", "raw": "'trivial test of setup'" }, "value": "trivial test of setup" }, { "type": "FunctionExpression", "start": 361, "end": 469, "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 16, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 371, "end": 469, "loc": { "start": { "line": 13, "column": 46 }, "end": { "line": 16, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 386, "end": 412, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 390, "end": 411, "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 37 } }, "id": { "type": "Identifier", "start": 390, "end": 394, "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 20 }, "identifierName": "base" }, "name": "base" }, "init": { "type": "NewExpression", "start": 397, "end": 411, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 37 } }, "callee": { "type": "Identifier", "start": 401, "end": 405, "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 31 }, "identifierName": "Base" }, "name": "Base" }, "arguments": [ { "type": "NumericLiteral", "start": 406, "end": 410, "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 14, "column": 36 } }, "extra": { "rawValue": 1337, "raw": "1337" }, "value": 1337 } ] } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 426, "end": 458, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 44 } }, "expression": { "type": "CallExpression", "start": 426, "end": 457, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 426, "end": 451, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 37 } }, "object": { "type": "MemberExpression", "start": 426, "end": 447, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 33 } }, "object": { "type": "MemberExpression", "start": 426, "end": 444, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 30 } }, "object": { "type": "CallExpression", "start": 426, "end": 441, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 27 } }, "callee": { "type": "Identifier", "start": 426, "end": 432, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 18 }, "identifierName": "expect" }, "name": "expect" }, "arguments": [ { "type": "MemberExpression", "start": 433, "end": 440, "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 26 } }, "object": { "type": "Identifier", "start": 433, "end": 437, "loc": { "start": { "line": 15, "column": 19 }, "end": { "line": 15, "column": 23 }, "identifierName": "base" }, "name": "base" }, "property": { "type": "Identifier", "start": 438, "end": 440, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 26 }, "identifierName": "_b" }, "name": "_b" }, "computed": false } ] }, "property": { "type": "Identifier", "start": 442, "end": 444, "loc": { "start": { "line": 15, "column": 28 }, "end": { "line": 15, "column": 30 }, "identifierName": "to" }, "name": "to" }, "computed": false }, "property": { "type": "Identifier", "start": 445, "end": 447, "loc": { "start": { "line": 15, "column": 31 }, "end": { "line": 15, "column": 33 }, "identifierName": "be" }, "name": "be" }, "computed": false }, "property": { "type": "Identifier", "start": 448, "end": 451, "loc": { "start": { "line": 15, "column": 34 }, "end": { "line": 15, "column": 37 }, "identifierName": "eql" }, "name": "eql" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 452, "end": 456, "loc": { "start": { "line": 15, "column": 38 }, "end": { "line": 15, "column": 42 } }, "extra": { "rawValue": 1337, "raw": "1337" }, "value": 1337 } ] } } ], "directives": [] } } ] } } ], "directives": [] } } ] } }, { "type": "ExpressionStatement", "start": 488, "end": 786, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 26, "column": 7 } }, "expression": { "type": "CallExpression", "start": 488, "end": 785, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 26, "column": 6 } }, "callee": { "type": "Identifier", "start": 488, "end": 496, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 12 }, "identifierName": "describe" }, "name": "describe" }, "arguments": [ { "type": "StringLiteral", "start": 497, "end": 508, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 24 } }, "extra": { "rawValue": "singleton", "raw": "'singleton'" }, "value": "singleton" }, { "type": "FunctionExpression", "start": 510, "end": 784, "loc": { "start": { "line": 19, "column": 26 }, "end": { "line": 26, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 520, "end": 784, "loc": { "start": { "line": 19, "column": 36 }, "end": { "line": 26, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 531, "end": 777, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 25, "column": 11 } }, "expression": { "type": "CallExpression", "start": 531, "end": 776, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 25, "column": 10 } }, "callee": { "type": "Identifier", "start": 531, "end": 533, "loc": { "start": { "line": 20, "column": 8