Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "type": "Program",
- "body": [
- {
- "type": "FunctionDeclaration",
- "id": {
- "type": "Identifier",
- "name": "MyClass"
- },
- "params": [],
- "defaults": [],
- "body": {
- "type": "BlockStatement",
- "body": []
- },
- "rest": null,
- "generator": false,
- "expression": false
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "module"
- },
- "property": {
- "type": "Identifier",
- "name": "exports"
- }
- },
- "right": {
- "type": "Identifier",
- "name": "MyClass"
- }
- }
- },
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "Identifier",
- "name": "MyClass"
- },
- "property": {
- "type": "Identifier",
- "name": "prototype"
- }
- },
- "right": {
- "type": "ObjectExpression",
- "properties": [
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "foo"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
- "type": "Identifier",
- "name": "bar"
- }
- ],
- "defaults": [],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "Identifier",
- "name": "bar"
- }
- }
- ]
- },
- "rest": null,
- "generator": false,
- "expression": false
- },
- "kind": "init"
- },
- {
- "type": "Property",
- "key": {
- "type": "Identifier",
- "name": "bar"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [],
- "defaults": [],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "computed": false,
- "object": {
- "type": "ThisExpression"
- },
- "property": {
- "type": "Identifier",
- "name": "foo"
- }
- },
- "arguments": []
- }
- }
- ]
- },
- "rest": null,
- "generator": false,
- "expression": false
- },
- "kind": "init"
- }
- ]
- }
- }
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement