awv3
Version:
AWV client CAD framework
2,034 lines • 5.99 MB
JSON
{
"type": "Program",
"start": 0,
"end": 58208,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1468,
"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": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"name": "delay"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 18,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 25
}
},
"value": "delay",
"rawValue": "delay",
"raw": "'delay'"
}
},
{
"type": "ImportDeclaration",
"start": 28,
"end": 81,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 53
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 35,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 35,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
}
},
"name": "editDistance"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 53,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 52
}
},
"value": "levenshtein-edit-distance",
"rawValue": "levenshtein-edit-distance",
"raw": "'levenshtein-edit-distance'"
}
},
{
"type": "ImportDeclaration",
"start": 83,
"end": 109,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 90,
"end": 95,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 90,
"end": 95,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 12
}
},
"name": "THREE"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 101,
"end": 108,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 25
}
},
"value": "three",
"rawValue": "three",
"raw": "'three'"
}
},
{
"type": "ImportDeclaration",
"start": 111,
"end": 151,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 118,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 118,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 15
}
},
"name": "Object3D"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 132,
"end": 150,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 39
}
},
"value": "../three/object3",
"rawValue": "../three/object3",
"raw": "'../three/object3'"
}
},
{
"type": "ImportDeclaration",
"start": 153,
"end": 193,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 160,
"end": 166,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 160,
"end": 166,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 13
}
},
"name": "Sketch"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 172,
"end": 192,
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 39
}
},
"value": "../sketcher/sketch",
"rawValue": "../sketcher/sketch",
"raw": "'../sketcher/sketch'"
}
},
{
"type": "ImportDeclaration",
"start": 195,
"end": 239,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 44
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 202,
"end": 210,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 202,
"end": 210,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 15
}
},
"name": "Sketcher"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 216,
"end": 238,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 43
}
},
"value": "../sketcher/sketcher",
"rawValue": "../sketcher/sketcher",
"raw": "'../sketcher/sketcher'"
}
},
{
"type": "ImportDeclaration",
"start": 241,
"end": 295,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 54
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 248,
"end": 264,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 23
}
},
"local": {
"type": "Identifier",
"start": 248,
"end": 264,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 23
}
},
"name": "SketchConstraint"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 270,
"end": 294,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 53
}
},
"value": "../sketcher/constraint",
"rawValue": "../sketcher/constraint",
"raw": "'../sketcher/constraint'"
}
},
{
"type": "ImportDeclaration",
"start": 297,
"end": 446,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 11,
"column": 33
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 311,
"end": 331,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 311,
"end": 316,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 9
}
},
"name": "Point"
},
"local": {
"type": "Identifier",
"start": 320,
"end": 331,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 24
}
},
"name": "SketchPoint"
}
},
{
"type": "ImportSpecifier",
"start": 333,
"end": 351,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 44
}
},
"imported": {
"type": "Identifier",
"start": 333,
"end": 337,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 30
}
},
"name": "Line"
},
"local": {
"type": "Identifier",
"start": 341,
"end": 351,
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 44
}
},
"name": "SketchLine"
}
},
{
"type": "ImportSpecifier",
"start": 353,
"end": 369,
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 62
}
},
"imported": {
"type": "Identifier",
"start": 353,
"end": 356,
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 49
}
},
"name": "Arc"
},
"local": {
"type": "Identifier",
"start": 360,
"end": 369,
"loc": {
"start": {
"line": 9,
"column": 53
},
"end": {
"line": 9,
"column": 62
}
},
"name": "SketchArc"
}
},
{
"type": "ImportSpecifier",
"start": 376,
"end": 411,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 39
}
},
"imported": {
"type": "Identifier",
"start": 376,
"end": 391,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 19
}
},
"name": "GeometricObject"
},
"local": {
"type": "Identifier",
"start": 395,
"end": 411,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 39
}
},
"name": "SketchGeomObject"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 420,
"end": 445,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 32
}
},
"value": "../sketcher/geomobjects",
"rawValue": "../sketcher/geomobjects",
"raw": "'../sketcher/geomobjects'"
}
},
{
"type": "ImportDeclaration",
"start": 448,
"end": 499,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 14,
"column": 31
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 462,
"end": 466,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 8
}
},
"imported": {
"type": "Identifier",
"start": 462,
"end": 466,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 8
}
},
"name": "Part"
},
"local": {
"type": "Identifier",
"start": 462,
"end": 466,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 8
}
},
"name": "Part"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 475,
"end": 498,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 30
}
},
"value": "../sketcher/ccobjects",
"rawValue": "../sketcher/ccobjects",
"raw": "'../sketcher/ccobjects'"
}
},
{
"type": "ImportDeclaration",
"start": 501,
"end": 555,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 17,
"column": 35
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 515,
"end": 518,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
},
"imported": {
"type": "Identifier",
"start": 515,
"end": 518,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
},
"name": "DSU"
},
"local": {
"type": "Identifier",
"start": 515,
"end": 518,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
},
"name": "DSU"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 527,
"end": 554,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 34
}
},
"value": "../sketcher/constraintgen",
"rawValue": "../sketcher/constraintgen",
"raw": "'../sketcher/constraintgen'"
}
},
{
"type": "FunctionDeclaration",
"start": 561,
"end": 831,
"loc": {
"start": {
"line": 20,
"column": 0
},
"end": {
"line": 26,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 570,
"end": 575,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 20,
"column": 14
}
},
"name": "check"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 576,
"end": 580,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 19
}
},
"name": "cond"
},
{
"type": "Identifier",
"start": 582,
"end": 589,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 28
}
},
"name": "message"
}
],
"body": {
"type": "BlockStatement",
"start": 591,
"end": 831,
"loc": {
"start": {
"line": 20,
"column": 30
},
"end": {
"line": 26,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 783,
"end": 828,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 25,
"column": 33
}
},
"test": {
"type": "UnaryExpression",
"start": 787,
"end": 792,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 13
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 788,
"end": 792,
"loc": {
"start": {
"line": 24,
"column": 9
},
"end": {
"line": 24,
"column": 13
}
},
"name": "cond",
"leadingComments": null
},
"leadingComments": null
},
"consequent": {
"type": "ThrowStatement",
"start": 803,
"end": 828,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 33
}
},
"argument": {
"type": "NewExpression",
"start": 809,
"end": 827,
"loc": {
"start": {
"line": 25,
"column": 14
},
"end": {
"line": 25,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 813,
"end": 818,
"loc": {
"start": {
"line": 25,
"column": 18
},
"end": {
"line": 25,
"column": 23
}
},
"name": "Error"
},
"arguments": [
{
"type": "Identifier",
"start": 819,
"end": 826,
"loc": {
"start": {
"line": 25,
"column": 24
},
"end": {
"line": 25,
"column": 31
}
},
"name": "message"
}
]
}
},
"alternate": null,
"leadingComments": [
{
"type": "CommentLine",
"value": "TODO: Throw custom exception and wrap arguments into it",
"start": 598,
"end": 655,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 61
}
},
"range": [
598,
655
]
},
{
"type": "CommentLine",
"value": "so that it could be redirected to console.error later.",
"start": 661,
"end": 717,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 60
}
},
"range": [
661,
717
]
},
{
"type": "CommentLine",
"value": "After that improve error messages all over the code.",
"start": 723,
"end": 777,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 58
}
},
"range": [
723,
777
]
}
]
}
],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": "for setting names used in sketch matching",
"start": 835,
"end": 878,
"loc": {
"start": {
"line": 28,
"column": 0
},
"end": {
"line": 28,
"column": 43
}
},
"range": [
835,
878
]
}
]
},
{
"type": "FunctionDeclaration",
"start": 880,
"end": 1070,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 32,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 889,
"end": 900,
"loc": {
"start": {
"line": 29,
"column": 9
},
"end": {
"line": 29,
"column": 20
}
},
"name": "setTestName",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 901,
"end": 904,
"loc": {
"start": {
"line": 29,
"column": 21
},
"end": {
"line": 29,
"column": 24
}
},
"name": "obj"
},
{
"type": "Identifier",
"start": 906,
"end": 910,
"loc": {
"start": {
"line": 29,
"column": 26
},
"end": {
"line": 29,
"column": 30
}
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 912,
"end": 1070,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 32,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 919,
"end": 1041,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 126
}
},
"expression": {
"type": "CallExpression",
"start": 919,
"end": 1040,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 125
}
},
"callee": {
"type": "Identifier",
"start": 919,
"end": 924,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 9
}
},
"name": "check"
},
"arguments": [
{
"type": "LogicalExpression",
"start": 925,
"end": 976,
"loc": {
"start": {
"line": 30,
"column": 10
},
"end": {
"line": 30,
"column": 61
}
},
"left": {
"type": "BinaryExpression",
"start": 925,
"end": 951,
"loc": {
"start": {
"line": 30,
"column": 10
},
"end": {
"line": 30,
"column": 36
}
},
"left": {
"type": "MemberExpression",
"start": 925,
"end": 937,
"loc": {
"start": {
"line": 30,
"column": 10
},
"end": {
"line": 30,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 925,
"end": 928,
"loc": {
"start": {
"line": 30,
"column": 10
},
"end": {
"line": 30,
"column": 13
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 929,
"end": 937,
"loc": {
"start": {
"line": 30,
"column": 14
},
"end": {
"line": 30,
"column": 22
}
},
"name": "testName"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 942,
"end": 951,
"loc": {
"start": {
"line": 30,
"column": 27
},
"end": {
"line": 30,
"column": 36
}
},
"name": "undefined"
}
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 955,
"end": 976,
"loc": {
"start": {
"line": 30,
"column": 40
},
"end": {
"line": 30,
"column": 61
}
},
"left": {
"type": "MemberExpression",
"start": 955,
"end": 967,
"loc": {
"start": {
"line": 30,
"column": 40
},
"end": {
"line": 30,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 955,
"end": 958,
"loc": {
"start": {
"line": 30,
"column": 40
},
"end": {
"line": 30,
"column": 43
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 959,
"end": 967,
"loc": {
"start": {
"line": 30,
"column": 44
},
"end": {
"line": 30,
"column": 52
}
},
"name": "testName"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 972,
"end": 976,
"loc": {
"start": {
"line": 30,
"column": 57
},
"end": {
"line": 30,
"column": 61
}
},
"name": "name"
}
}
},
{
"type": "BinaryExpression",
"start": 978,
"end": 1039,
"loc": {
"start": {
"line": 30,
"column": 63
},
"end": {
"line": 30,
"column": 124
}
},
"left": {
"type": "BinaryExpression",
"start": 978,
"end": 1032,
"loc": {
"start": {
"line": 30,
"column": 63
},
"end": {
"line": 30,
"column": 117
}
},
"left": {
"type": "BinaryExpression",
"start": 978,
"end": 1021,
"loc": {
"start": {
"line": 30,
"column": 63
},
"end": {
"line": 30,
"column": 106
}
},
"left": {
"type": "Literal",
"start": 978,
"end": 1006,
"loc": {
"start": {
"line": 30,
"column": 63
},
"end": {
"line": 30,
"column": 91
}
},
"value": "Overwriting object's name ",
"rawValue": "Overwriting object's name ",
"raw": "\"Overwriting object's name \""
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 1009,
"end": 1021,
"loc": {
"start": {
"line": 30,
"column": 94
},
"end": {
"line": 30,
"column": 106
}
},
"object": {
"type": "Identifier",
"start": 1009,
"end": 1012,
"loc": {
"start": {
"line": 30,
"column": 94
},
"end": {
"line": 30,
"column": 97
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 1013,
"end": 1021,
"loc": {
"start": {
"line": 30,
"column": 98
},
"end": {
"line": 30,
"column": 106
}
},
"name": "testName"
},
"computed": false
}
},
"operator": "+",
"right": {
"type": "Literal",
"start": 1024,
"end": 1032,
"loc": {
"start": {
"line": 30,
"column": 109
},
"end": {
"line": 30,
"column": 117
}
},
"value": " with ",
"rawValue": " with ",
"raw": "\" with \""
}
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 1035,
"end": 1039,
"loc": {
"start": {
"line": 30,
"column": 120
},
"end": {
"line": 30,
"column": 124
}
},
"name": "name"
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1047,
"end": 1067,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1047,
"end": 1066,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1047,
"end": 1059,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 1047,
"end": 1050,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 7
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 1051,
"end": 1059,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 16
}
},
"name": "testName"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1062,
"end": 1066,
"loc": {
"start": {
"line": 31,
"column": 19
},
"end": {
"line": 31,
"column": 23
}
},
"name": "name"
}
}
}
]
},
"leadingComments": [
{
"type": "CommentLine",
"value": "for setting names used in sketch matching",
"start": 835,
"end": 878,
"loc": {
"start": {
"line": 28,
"column": 0
},
"end": {
"line": 28,
"column": 43
}
},
"range": [
835,
878
]
}
]
},
{
"type": "FunctionDeclaration",
"start": 1072,
"end": 1134,
"loc": {
"start": {
"line": 33,
"column": 0
},
"end": {
"line": 35,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1081,
"end": 1092,
"loc": {
"start": {
"line": 33,
"column": 9
},
"end": {
"line": 33,
"column": 20
}
},
"name": "getTestName"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1093,
"end": 1096,
"loc": {
"start": {
"line": 33,
"column": 21
},
"end": {
"line": 33,
"column": 24
}
},
"name": "obj"
},
{
"type": "Identifier",
"start": 1098,
"end": 1102,
"loc": {
"start": {
"line": 33,
"column": 26
},
"end": {
"line": 33,
"column": 30
}
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 1104,
"end": 1134,
"loc": {
"start": {
"line": 33,
"column": 32
},
"end": {
"line": 35,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1111,
"end": 1131,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 24
}
},
"argument": {
"type": "MemberExpression",
"start": 1118,
"end": 1130,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 1118,
"end": 1121,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 14
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 1122,
"end": 1130,
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 23
}
},
"name": "testName"
},
"computed": false
}
}
]
}
},
{
"type": "FunctionDeclaration",
"start": 1138,
"end": 1463,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1147,
"end": 1158,
"loc": {
"start": {
"line": 37,
"column": 9
},
"end": {
"line": 37,
"column": 20
}
},
"name": "_convVector"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1159,
"end": 1162,
"loc": {
"start": {
"line": 37,
"column": 21
},
"end": {
"line": 37,
"column": 24
}
},
"name": "vec"
}
],
"body": {
"type": "BlockStatement",
"start": 1164,
"end": 1463,
"loc": {
"start": {
"line": 37,
"column": 26
},
"end": {
"line": 43,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 1171,
"end": 1326,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 39,
"column": 49
}
},
"test": {
"type": "LogicalExpression",
"start": 1175,
"end": 1274,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 107
}
},
"left": {
"type": "LogicalExpression",
"start": 1175,
"end": 1243,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 76
}
},
"left": {
"type": "LogicalExpression",
"start": 1175,
"end": 1212,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 45
}
},
"left": {
"type": "CallExpression",
"start": 1175,
"end": 1193,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 1175,
"end": 1188,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 21
}
},
"object": {