UNPKG

awv3

Version:
1,902 lines (1,901 loc) 92.2 kB
{ "type": "File", "start": 0, "end": 638, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 16, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 638, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 16, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 32, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 32 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } }, "local": { "type": "Identifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 }, "identifierName": "Angular" }, "name": "Angular" } } ], "source": { "type": "StringLiteral", "start": 20, "end": 31, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 31 } }, "extra": { "rawValue": "./angular", "raw": "'./angular'" }, "value": "./angular" } }, { "type": "ImportDeclaration", "start": 33, "end": 63, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 30 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 }, "identifierName": "Linear" }, "name": "Linear" } } ], "source": { "type": "StringLiteral", "start": 52, "end": 62, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 29 } }, "extra": { "rawValue": "./linear", "raw": "'./linear'" }, "value": "./linear" } }, { "type": "ImportDeclaration", "start": 64, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 30 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 71, "end": 77, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "local": { "type": "Identifier", "start": 71, "end": 77, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 }, "identifierName": "Radial" }, "name": "Radial" } } ], "source": { "type": "StringLiteral", "start": 83, "end": 93, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 29 } }, "extra": { "rawValue": "./radial", "raw": "'./radial'" }, "value": "./radial" } }, { "type": "ExportDefaultDeclaration", "start": 96, "end": 532, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 11, "column": 1 } }, "declaration": { "type": "FunctionDeclaration", "start": 111, "end": 532, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 11, "column": 1 } }, "id": { "type": "Identifier", "start": 120, "end": 128, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 32 }, "identifierName": "Graphics" }, "name": "Graphics" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 129, "end": 133, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 37 }, "identifierName": "name" }, "name": "name" }, { "type": "RestElement", "start": 135, "end": 142, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 5, "column": 46 } }, "argument": { "type": "Identifier", "start": 138, "end": 142, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 5, "column": 46 }, "identifierName": "args" }, "name": "args" } } ], "body": { "type": "BlockStatement", "start": 144, "end": 532, "loc": { "start": { "line": 5, "column": 48 }, "end": { "line": 11, "column": 1 } }, "body": [ { "type": "SwitchStatement", "start": 150, "end": 530, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 10, "column": 5 } }, "discriminant": { "type": "Identifier", "start": 158, "end": 162, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 16 }, "identifierName": "name" }, "name": "name" }, "cases": [ { "type": "SwitchCase", "start": 174, "end": 201, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 35 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 179, "end": 200, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 34 } }, "extra": { "rawValue": "CC_AngularDimension", "raw": "'CC_AngularDimension'" }, "value": "CC_AngularDimension" } }, { "type": "SwitchCase", "start": 202, "end": 265, "loc": { "start": { "line": 7, "column": 36 }, "end": { "line": 7, "column": 99 } }, "consequent": [ { "type": "ReturnStatement", "start": 237, "end": 265, "loc": { "start": { "line": 7, "column": 71 }, "end": { "line": 7, "column": 99 } }, "argument": { "type": "NewExpression", "start": 244, "end": 264, "loc": { "start": { "line": 7, "column": 78 }, "end": { "line": 7, "column": 98 } }, "callee": { "type": "Identifier", "start": 248, "end": 255, "loc": { "start": { "line": 7, "column": 82 }, "end": { "line": 7, "column": 89 }, "identifierName": "Angular" }, "name": "Angular" }, "arguments": [ { "type": "SpreadElement", "start": 256, "end": 263, "loc": { "start": { "line": 7, "column": 90 }, "end": { "line": 7, "column": 97 } }, "argument": { "type": "Identifier", "start": 259, "end": 263, "loc": { "start": { "line": 7, "column": 93 }, "end": { "line": 7, "column": 97 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 207, "end": 235, "loc": { "start": { "line": 7, "column": 41 }, "end": { "line": 7, "column": 69 } }, "extra": { "rawValue": "CC_AngularFeatureDimension", "raw": "'CC_AngularFeatureDimension'" }, "value": "CC_AngularFeatureDimension" } }, { "type": "SwitchCase", "start": 274, "end": 300, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 34 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 279, "end": 299, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 33 } }, "extra": { "rawValue": "CC_LinearDimension", "raw": "'CC_LinearDimension'" }, "value": "CC_LinearDimension" } }, { "type": "SwitchCase", "start": 301, "end": 362, "loc": { "start": { "line": 8, "column": 35 }, "end": { "line": 8, "column": 96 } }, "consequent": [ { "type": "ReturnStatement", "start": 335, "end": 362, "loc": { "start": { "line": 8, "column": 69 }, "end": { "line": 8, "column": 96 } }, "argument": { "type": "NewExpression", "start": 342, "end": 361, "loc": { "start": { "line": 8, "column": 76 }, "end": { "line": 8, "column": 95 } }, "callee": { "type": "Identifier", "start": 346, "end": 352, "loc": { "start": { "line": 8, "column": 80 }, "end": { "line": 8, "column": 86 }, "identifierName": "Linear" }, "name": "Linear" }, "arguments": [ { "type": "SpreadElement", "start": 353, "end": 360, "loc": { "start": { "line": 8, "column": 87 }, "end": { "line": 8, "column": 94 } }, "argument": { "type": "Identifier", "start": 356, "end": 360, "loc": { "start": { "line": 8, "column": 90 }, "end": { "line": 8, "column": 94 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 306, "end": 333, "loc": { "start": { "line": 8, "column": 40 }, "end": { "line": 8, "column": 67 } }, "extra": { "rawValue": "CC_LinearFeatureDimension", "raw": "'CC_LinearFeatureDimension'" }, "value": "CC_LinearFeatureDimension" } }, { "type": "SwitchCase", "start": 371, "end": 399, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 36 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 376, "end": 398, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 35 } }, "extra": { "rawValue": "CC_DiameterDimension", "raw": "'CC_DiameterDimension'" }, "value": "CC_DiameterDimension" } }, { "type": "SwitchCase", "start": 400, "end": 435, "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 72 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 405, "end": 434, "loc": { "start": { "line": 9, "column": 42 }, "end": { "line": 9, "column": 71 } }, "extra": { "rawValue": "CC_DiameterFeatureDimension", "raw": "'CC_DiameterFeatureDimension'" }, "value": "CC_DiameterFeatureDimension" } }, { "type": "SwitchCase", "start": 436, "end": 462, "loc": { "start": { "line": 9, "column": 73 }, "end": { "line": 9, "column": 99 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 441, "end": 461, "loc": { "start": { "line": 9, "column": 78 }, "end": { "line": 9, "column": 98 } }, "extra": { "rawValue": "CC_RadialDimension", "raw": "'CC_RadialDimension'" }, "value": "CC_RadialDimension" } }, { "type": "SwitchCase", "start": 463, "end": 524, "loc": { "start": { "line": 9, "column": 100 }, "end": { "line": 9, "column": 161 } }, "consequent": [ { "type": "ReturnStatement", "start": 497, "end": 524, "loc": { "start": { "line": 9, "column": 134 }, "end": { "line": 9, "column": 161 } }, "argument": { "type": "NewExpression", "start": 504, "end": 523, "loc": { "start": { "line": 9, "column": 141 }, "end": { "line": 9, "column": 160 } }, "callee": { "type": "Identifier", "start": 508, "end": 514, "loc": { "start": { "line": 9, "column": 145 }, "end": { "line": 9, "column": 151 }, "identifierName": "Radial" }, "name": "Radial" }, "arguments": [ { "type": "SpreadElement", "start": 515, "end": 522, "loc": { "start": { "line": 9, "column": 152 }, "end": { "line": 9, "column": 159 } }, "argument": { "type": "Identifier", "start": 518, "end": 522, "loc": { "start": { "line": 9, "column": 155 }, "end": { "line": 9, "column": 159 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 468, "end": 495, "loc": { "start": { "line": 9, "column": 105 }, "end": { "line": 9, "column": 132 } }, "extra": { "rawValue": "CC_RadialFeatureDimension", "raw": "'CC_RadialFeatureDimension'" }, "value": "CC_RadialFeatureDimension" } } ] } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 534, "end": 558, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 24 } } } ], "leadingComments": [] }, "trailingComments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 534, "end": 558, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 24 } } } ] }, { "type": "IfStatement", "start": 559, "end": 637, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 15, "column": 62 } }, "test": { "type": "MemberExpression", "start": 563, "end": 573, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 14 } }, "object": { "type": "Identifier", "start": 563, "end": 569, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 10 }, "identifierName": "module" }, "name": "module", "leadingComments": null }, "property": { "type": "Identifier", "start": 570, "end": 573, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 14 }, "identifierName": "hot" }, "name": "hot" }, "computed": false, "leadingComments": null }, "consequent": { "type": "ExpressionStatement", "start": 579, "end": 637, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 62 } }, "expression": { "type": "CallExpression", "start": 579, "end": 636, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 61 } }, "callee": { "type": "MemberExpression", "start": 579, "end": 596, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 21 } }, "object": { "type": "MemberExpression", "start": 579, "end": 589, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 14 } }, "object": { "type": "Identifier", "start": 579, "end": 585, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 10 }, "identifierName": "module" }, "name": "module" }, "property": { "type": "Identifier", "start": 586, "end": 589, "loc": { "start": { "line": 15, "column": 11 }, "end": { "line": 15, "column": 14 }, "identifierName": "hot" }, "name": "hot" }, "computed": false }, "property": { "type": "Identifier", "start": 590, "end": 596, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 21 }, "identifierName": "accept" }, "name": "accept" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 597, "end": 635, "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 60 } }, "elements": [ { "type": "StringLiteral", "start": 598, "end": 609, "loc": { "start": { "line": 15, "column": 23 }, "end": { "line": 15, "column": 34 } }, "extra": { "rawValue": "./angular", "raw": "'./angular'" }, "value": "./angular" }, { "type": "StringLiteral", "start": 611, "end": 621, "loc": { "start": { "line": 15, "column": 36 }, "end": { "line": 15, "column": 46 } }, "extra": { "rawValue": "./linear", "raw": "'./linear'" }, "value": "./linear" }, { "type": "StringLiteral", "start": 623, "end": 633, "loc": { "start": { "line": 15, "column": 48 }, "end": { "line": 15, "column": 58 } }, "extra": { "rawValue": "./radial", "raw": "'./radial'" }, "value": "./radial" } ] } ] } }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 534, "end": 558, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 24 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 534, "end": 558, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 24 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Angular", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 15, "end": 19, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./angular", "start": 20, "end": 31, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 31, "end": 32, "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 32 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 33, "end": 39, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Linear", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 47, "end": 51, "loc": { "start": { "line": 2, "column": 14 }, "end": { "line": 2, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./linear", "start": 52, "end": 62, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 62, "end": 63, "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 30 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 64, "end": 70, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Radial", "start": 71, "end": 77, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 78, "end": 82, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./radial", "start": 83, "end": 93, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 93, "end": 94, "loc": { "start": { "line": 3, "column": 29 }, "end": { "line": 3, "column": 30 } } }, { "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": 96, "end": 102, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "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": 103, "end": 110, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 14 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 111, "end": 119, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Graphics", "start": 120, "end": 128, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 32 } } }, { "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": 5, "column": 32 }, "end": { "line": 5, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 129, "end": 133, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 37 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 133, "end": 134, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 38 } } }, { "type": { "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 135, "end": 138, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 5, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "args", "start": 138, "end": 142, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 5, "column": 46 } } }, { "type": {