awv3
Version:
⚡ AWV3 embedded CAD
1,495 lines (1,494 loc) • 1.75 MB
JSON
{
"type": "File",
"start": 0,
"end": 8236,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 246,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 8236,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 246,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 11
},
"identifierName": "Base"
},
"name": "Base"
}
}
],
"source": {
"type": "StringLiteral",
"start": 17,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 25
}
},
"extra": {
"rawValue": "./base",
"raw": "'./base'"
},
"value": "./base"
}
},
{
"type": "ImportDeclaration",
"start": 27,
"end": 88,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 61
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 36,
"end": 49,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 36,
"end": 49,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
},
"identifierName": "createContext"
},
"name": "createContext"
},
"local": {
"type": "Identifier",
"start": 36,
"end": 49,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
},
"identifierName": "createContext"
},
"name": "createContext"
}
},
{
"type": "ImportSpecifier",
"start": 51,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"imported": {
"type": "Identifier",
"start": 51,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
},
"identifierName": "handleResult"
},
"name": "handleResult"
},
"local": {
"type": "Identifier",
"start": 51,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
},
"identifierName": "handleResult"
},
"name": "handleResult"
}
}
],
"source": {
"type": "StringLiteral",
"start": 71,
"end": 87,
"loc": {
"start": {
"line": 2,
"column": 44
},
"end": {
"line": 2,
"column": 60
}
},
"extra": {
"rawValue": "../core/parser",
"raw": "'../core/parser'"
},
"value": "../core/parser"
}
},
{
"type": "ImportDeclaration",
"start": 89,
"end": 125,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 96,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 96,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
},
"identifierName": "Parser"
},
"name": "Parser"
}
}
],
"source": {
"type": "StringLiteral",
"start": 108,
"end": 124,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 35
}
},
"extra": {
"rawValue": "../core/parser",
"raw": "'../core/parser'"
},
"value": "../core/parser"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 127,
"end": 7473,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 224,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 142,
"end": 7473,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 224,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 148,
"end": 155,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 28
},
"identifierName": "SignalR"
},
"name": "SignalR"
},
"superClass": {
"type": "Identifier",
"start": 164,
"end": 168,
"loc": {
"start": {
"line": 5,
"column": 37
},
"end": {
"line": 5,
"column": 41
},
"identifierName": "Base"
},
"name": "Base"
},
"body": {
"type": "ClassBody",
"start": 169,
"end": 7473,
"loc": {
"start": {
"line": 5,
"column": 42
},
"end": {
"line": 224,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 175,
"end": 3190,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 96,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 175,
"end": 186,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 187,
"end": 199,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 28
}
},
"left": {
"type": "Identifier",
"start": 187,
"end": 194,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 23
},
"identifierName": "options"
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 197,
"end": 199,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 28
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 201,
"end": 3190,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 96,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 211,
"end": 226,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 211,
"end": 225,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 22
}
},
"callee": {
"type": "Super",
"start": 211,
"end": 216,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 217,
"end": 224,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 21
},
"identifierName": "options"
},
"name": "options"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 236,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 236,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 236,
"end": 245,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 236,
"end": 240,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 241,
"end": 245,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 17
},
"identifierName": "ping"
},
"name": "ping"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 248,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 41
}
},
"left": {
"type": "MemberExpression",
"start": 248,
"end": 260,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 248,
"end": 255,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 27
},
"identifierName": "options"
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 256,
"end": 260,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 32
},
"identifierName": "ping"
},
"name": "ping"
},
"computed": false
},
"operator": "||",
"right": {
"type": "NumericLiteral",
"start": 264,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 41
}
},
"extra": {
"rawValue": 10000,
"raw": "10000"
},
"value": 10000
}
}
}
},
{
"type": "ExpressionStatement",
"start": 279,
"end": 304,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 279,
"end": 303,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 279,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 279,
"end": 283,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 284,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
},
"identifierName": "onPause"
},
"name": "onPause"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 294,
"end": 303,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 32
},
"identifierName": "undefined"
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 313,
"end": 339,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 313,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 313,
"end": 326,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 313,
"end": 317,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 318,
"end": 326,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 21
},
"identifierName": "onResume"
},
"name": "onResume"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 329,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 33
},
"identifierName": "undefined"
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 349,
"end": 366,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 25
}
},
"expression": {
"type": "MemberExpression",
"start": 349,
"end": 365,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 349,
"end": 353,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 354,
"end": 365,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 24
},
"identifierName": "_connection"
},
"name": "_connection"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 375,
"end": 391,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 24
}
},
"expression": {
"type": "MemberExpression",
"start": 375,
"end": 390,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 375,
"end": 379,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 380,
"end": 390,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 23
},
"identifierName": "_heartbeat"
},
"name": "_heartbeat"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 400,
"end": 414,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 22
}
},
"expression": {
"type": "MemberExpression",
"start": 400,
"end": 413,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 400,
"end": 404,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 405,
"end": 413,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 21
},
"identifierName": "_timeout"
},
"name": "_timeout"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 423,
"end": 440,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 25
}
},
"expression": {
"type": "MemberExpression",
"start": 423,
"end": 439,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 423,
"end": 427,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 428,
"end": 439,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 24
},
"identifierName": "_queueBlock"
},
"name": "_queueBlock"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 449,
"end": 470,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 29
}
},
"expression": {
"type": "MemberExpression",
"start": 449,
"end": 469,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 449,
"end": 453,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 454,
"end": 469,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 28
},
"identifierName": "_currentResolve"
},
"name": "_currentResolve"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 479,
"end": 499,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 28
}
},
"expression": {
"type": "MemberExpression",
"start": 479,
"end": 498,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 479,
"end": 483,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 484,
"end": 498,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 27
},
"identifierName": "_currentReject"
},
"name": "_currentReject"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 508,
"end": 525,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 508,
"end": 524,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 508,
"end": 519,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 508,
"end": 512,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 513,
"end": 519,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 19
},
"identifierName": "_queue"
},
"name": "_queue"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 522,
"end": 524,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 24
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 534,
"end": 569,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 534,
"end": 568,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 534,
"end": 548,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 534,
"end": 538,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 539,
"end": 548,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 22
},
"identifierName": "_sequence"
},
"name": "_sequence"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 551,
"end": 568,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 551,
"end": 566,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 551,
"end": 558,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 32