{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/4968","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/4968/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/4968/comments","events_url":"https://api.github.com/repos/babel/babel/issues/4968/events","html_url":"https://github.com/babel/babel/issues/4968","id":194405524,"number":4968,"title":"Babel will not call Visitor method Decorator (babel-plugin)","user":{"login":"SerkanSipahi","id":1880749,"avatar_url":"https://avatars.githubusercontent.com/u/1880749?v=3","gravatar_id":"","url":"https://api.github.com/users/SerkanSipahi","html_url":"https://github.com/SerkanSipahi","followers_url":"https://api.github.com/users/SerkanSipahi/followers","following_url":"https://api.github.com/users/SerkanSipahi/following{/other_user}","gists_url":"https://api.github.com/users/SerkanSipahi/gists{/gist_id}","starred_url":"https://api.github.com/users/SerkanSipahi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerkanSipahi/subscriptions","organizations_url":"https://api.github.com/users/SerkanSipahi/orgs","repos_url":"https://api.github.com/users/SerkanSipahi/repos","events_url":"https://api.github.com/users/SerkanSipahi/events{/privacy}","received_events_url":"https://api.github.com/users/SerkanSipahi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-12-08T18:11:07Z","updated_at":"2017-02-11T19:33:28Z","closed_at":null,"body":"Babel will not call Visitor function \"Decorator\" (babel-plugin). Is this a bug or not possible with babel?\r\n \r\n### Input Code\r\n\r\n```js\r\nexport default function () {  \r\n  return {\r\n    visitor: {\r\n      Decorator(path){\r\n        console.log('Decorator') // no log with babel\r\n      },\r\n      ClassDeclaration(path){\r\n      \tconsole.log('ClassDeclaration') // log\r\n      },\r\n      ClassMethod(path){\r\n      \tconsole.log('ClassMethod') // log\r\n      }\r\n    }\r\n  };\r\n}\r\n```\r\n### Expected Behavior\r\n- It should call visitor function \"Decorator\" in Babel\r\n\r\n### Current Behavior\r\n- No visitor function call \"Decorator\" in Babel\r\n\r\n### Context\r\n- tests green, working well in my test env: https://github.com/SerkanSipahi/babel-plugin-app-decorators-view-precompile/blob/v1.0.0-alpha.3/test/index.js\r\n- work also well with astexplorer, see example: https://astexplorer.net/#/YD25zHTNWd/6\r\n\r\n### Environment\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| Babel            |  6.18.0\r\n| node             | 5.1.0\r\n| npm              | 3.3.12\r\n| Operating System | OS X El Captian\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/279169954","html_url":"https://github.com/babel/babel/issues/4968#issuecomment-279169954","issue_url":"https://api.github.com/repos/babel/babel/issues/4968","id":279169954,"user":{"login":"loganfsmyth","id":132260,"avatar_url":"https://avatars.githubusercontent.com/u/132260?v=3","gravatar_id":"","url":"https://api.github.com/users/loganfsmyth","html_url":"https://github.com/loganfsmyth","followers_url":"https://api.github.com/users/loganfsmyth/followers","following_url":"https://api.github.com/users/loganfsmyth/following{/other_user}","gists_url":"https://api.github.com/users/loganfsmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/loganfsmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganfsmyth/subscriptions","organizations_url":"https://api.github.com/users/loganfsmyth/orgs","repos_url":"https://api.github.com/users/loganfsmyth/repos","events_url":"https://api.github.com/users/loganfsmyth/events{/privacy}","received_events_url":"https://api.github.com/users/loganfsmyth/received_events","type":"User","site_admin":false},"created_at":"2017-02-11T19:33:28Z","updated_at":"2017-02-11T19:33:28Z","body":"it could potentially have been an issue if you were also using `transform-decorators-legacy`? The only reason I'd expect something like that to not run is if the node was removed and transformed by something else first."}}
{"actor":{"display_login":"loganfsmyth"}}