{ "type": "File", "start":0,"end":164,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":164}}, "program": { "type": "Program", "start":0,"end":164,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":164}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start":0,"end":164,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":164}}, "id": { "type": "Identifier", "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"}, "name": "Foo" }, "superClass": null, "body": { "type": "ClassBody", "start":10,"end":164,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":11,"column":1,"index":164}}, "body": [ { "type": "ClassMethod", "start":14,"end":110,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":6,"column":3,"index":110}}, "static": false, "key": { "type": "Identifier", "start":14,"end":17,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":5,"index":17},"identifierName":"foo"}, "name": "foo" }, "computed": false, "kind": "method", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":20,"end":110,"loc":{"start":{"line":2,"column":8,"index":20},"end":{"line":6,"column":3,"index":110}}, "body": [ { "type": "SwitchStatement", "start":26,"end":106,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":5,"column":5,"index":106}}, "discriminant": { "type": "NumericLiteral", "start":34,"end":35,"loc":{"start":{"line":3,"column":12,"index":34},"end":{"line":3,"column":13,"index":35}}, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "cases": [ { "type": "SwitchCase", "start":45,"end":100,"loc":{"start":{"line":4,"column":6,"index":45},"end":{"line":4,"column":61,"index":100}}, "consequent": [], "test": { "type": "BinaryExpression", "start":51,"end":98,"loc":{"start":{"line":4,"column":12,"index":51},"end":{"line":4,"column":59,"index":98}}, "left": { "type": "MemberExpression", "start":51,"end":71,"loc":{"start":{"line":4,"column":12,"index":51},"end":{"line":4,"column":32,"index":71}}, "object": { "type": "Identifier", "start":51,"end":61,"loc":{"start":{"line":4,"column":12,"index":51},"end":{"line":4,"column":22,"index":61},"identifierName":"MatrixType"}, "name": "MatrixType" }, "computed": false, "property": { "type": "Identifier", "start":62,"end":71,"loc":{"start":{"line":4,"column":23,"index":62},"end":{"line":4,"column":32,"index":71},"identifierName":"IsScaling"}, "name": "IsScaling" } }, "operator": "|", "right": { "type": "MemberExpression", "start":74,"end":98,"loc":{"start":{"line":4,"column":35,"index":74},"end":{"line":4,"column":59,"index":98}}, "object": { "type": "Identifier", "start":74,"end":84,"loc":{"start":{"line":4,"column":35,"index":74},"end":{"line":4,"column":45,"index":84},"identifierName":"MatrixType"}, "name": "MatrixType" }, "computed": false, "property": { "type": "Identifier", "start":85,"end":98,"loc":{"start":{"line":4,"column":46,"index":85},"end":{"line":4,"column":59,"index":98},"identifierName":"IsTranslation"}, "name": "IsTranslation" } }, "extra": { "parenthesized": true, "parenStart": 50 } } } ] } ], "directives": [] } }, { "type": "ClassMethod", "start":114,"end":162,"loc":{"start":{"line":8,"column":2,"index":114},"end":{"line":10,"column":3,"index":162}}, "static": false, "key": { "type": "Identifier", "start":114,"end":117,"loc":{"start":{"line":8,"column":2,"index":114},"end":{"line":8,"column":5,"index":117},"identifierName":"bar"}, "name": "bar" }, "computed": false, "kind": "method", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":120,"end":162,"loc":{"start":{"line":8,"column":8,"index":120},"end":{"line":10,"column":3,"index":162}}, "body": [ { "type": "SwitchStatement", "start":126,"end":158,"loc":{"start":{"line":9,"column":4,"index":126},"end":{"line":9,"column":36,"index":158}}, "discriminant": { "type": "BinaryExpression", "start":134,"end":154,"loc":{"start":{"line":9,"column":12,"index":134},"end":{"line":9,"column":32,"index":154}}, "left": { "type": "BinaryExpression", "start":135,"end":145,"loc":{"start":{"line":9,"column":13,"index":135},"end":{"line":9,"column":23,"index":145}}, "left": { "type": "Identifier", "start":135,"end":140,"loc":{"start":{"line":9,"column":13,"index":135},"end":{"line":9,"column":18,"index":140},"identifierName":"typeA"}, "name": "typeA" }, "operator": "<<", "right": { "type": "NumericLiteral", "start":144,"end":145,"loc":{"start":{"line":9,"column":22,"index":144},"end":{"line":9,"column":23,"index":145}}, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 }, "extra": { "parenthesized": true, "parenStart": 134 } }, "operator": "|", "right": { "type": "Identifier", "start":149,"end":154,"loc":{"start":{"line":9,"column":27,"index":149},"end":{"line":9,"column":32,"index":154},"identifierName":"typeB"}, "name": "typeB" } }, "cases": [] } ], "directives": [] } } ] } } ], "directives": [] } }