{"size": 525, "ext": "js", "max_stars_repo_path": "src/jspm_packages/npm/jstransform@10.1.0/visitors/es6-object-short-notation-visitors.js", "max_stars_repo_name": "thomjoy/turftest", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/jspm_packages/npm/jstransform@10.1.0/visitors/es6-object-short-notation-visitors.js", "max_issues_repo_name": "thomjoy/turftest", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/jspm_packages/npm/jstransform@10.1.0/visitors/es6-object-short-notation-visitors.js", "max_forks_repo_name": "thomjoy/turftest", "max_forks_repo_forks_event_min_datetime": "2020-01-08T12:48:26.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-18T15:30:54.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 40.3846153846, "max_line_length": 131, "alphanum_fraction": 0.7085714286}
/* */ 
var Syntax = require("esprima-fb").Syntax;
var utils = require("../src/utils");
function visitObjectLiteralShortNotation(traverse, node, path, state) {
  utils.catchup(node.key.range[1], state);
  utils.append(':' + node.key.name, state);
  return false;
}
visitObjectLiteralShortNotation.test = function(node, path, state) {
  return node.type === Syntax.Property && node.kind === 'init' && node.shorthand === true && path[0].type !== Syntax.ObjectPattern;
};
exports.visitorList = [visitObjectLiteralShortNotation];
