{"size": 1968, "ext": "js", "max_stars_repo_path": "test/scripts/ast-unmangle-observe.js", "max_stars_repo_name": "medikoo/dbjs", "max_stars_repo_stars_event_min_datetime": "2015-01-10T03:28:10.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-03T09:23:20.000Z", "max_issues_repo_path": "test/scripts/ast-unmangle-observe.js", "max_issues_repo_name": "medikoo/dbjs", "max_issues_repo_issues_event_min_datetime": "2015-01-07T11:18:45.000Z", "max_issues_repo_issues_event_max_datetime": "2017-12-06T10:17:30.000Z", "max_forks_repo_path": "node_modules/dbjs/test/scripts/ast-unmangle-observe.js", "max_forks_repo_name": "egovernment/eregistrations-starter", "max_forks_repo_forks_event_min_datetime": "2015-06-16T14:28:55.000Z", "max_forks_repo_forks_event_max_datetime": "2016-12-07T06:31:43.000Z"}
{"max_stars_count": 21, "max_issues_count": 63, "max_forks_count": 3, "avg_line_length": 27.7183098592, "max_line_length": 67, "alphanum_fraction": 0.5513211382}
'use strict';

module.exports = function (t, a) {
	var unmangled = { type: 'VariableDeclaration',
		declarations:
		[ { type: 'VariableDeclarator',
			id: { type: 'Identifier', name: 'raz' },
			init:
			{ type: 'FunctionExpression',
				id: null,
				params: [ { type: 'Identifier', name: '_observe' } ],
				defaults: [],
				body:
				{ type: 'BlockStatement',
					body:
					[ { type: 'ExpressionStatement',
						expression:
						{ type: 'CallExpression',
							callee: { type: 'Identifier', name: '_observe' },
							arguments: [ { type: 'Identifier', name: 'dwa' } ] } } ] },
				rest: null,
				generator: false,
				expression: false } } ],
		kind: 'var' }
	  , mangled = { type: 'VariableDeclaration',
			declarations:
			[ { type: 'VariableDeclarator',
				id: { type: 'Identifier', name: 'raz' },
				init:
				{ type: 'FunctionExpression',
					id: null,
					params: [ { type: 'Identifier', name: 'a' } ],
					defaults: [],
					body:
					{ type: 'BlockStatement',
						body:
						[ { type: 'ExpressionStatement',
							expression:
							{ type: 'CallExpression',
								callee: { type: 'Identifier', name: 'a' },
								arguments: [ { type: 'Identifier', name: 'dwa' } ] } } ] },
					rest: null,
					generator: false,
					expression: false } } ],
			kind: 'var' };

	a(t(mangled, unmangled), mangled, "Return");

	a.deep(mangled, { type: 'VariableDeclaration',
		declarations:
		[ { type: 'VariableDeclarator',
			id: { type: 'Identifier', name: 'raz' },
			init:
			{ type: 'FunctionExpression',
				id: null,
				params: [ { type: 'Identifier', name: '_observe' } ],
				defaults: [],
				body:
				{ type: 'BlockStatement',
					body:
					[ { type: 'ExpressionStatement',
						expression:
						{ type: 'CallExpression',
							callee: { type: 'Identifier', name: '_observe' },
							arguments: [ { type: 'Identifier', name: 'dwa' } ] } } ] },
				rest: null,
				generator: false,
				expression: false } } ],
		kind: 'var' });
};
