{"action":"created","issue":{"url":"https://api.github.com/repos/javaparser/javaparser/issues/22","labels_url":"https://api.github.com/repos/javaparser/javaparser/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/javaparser/javaparser/issues/22/comments","events_url":"https://api.github.com/repos/javaparser/javaparser/issues/22/events","html_url":"https://github.com/javaparser/javaparser/issues/22","id":19544266,"number":22,"title":"Change the AST nodes or create new ones to modify source code like refactoring.","user":{"login":"matozoid","id":55701,"avatar_url":"https://avatars.githubusercontent.com/u/55701?v=3","gravatar_id":"","url":"https://api.github.com/users/matozoid","html_url":"https://github.com/matozoid","followers_url":"https://api.github.com/users/matozoid/followers","following_url":"https://api.github.com/users/matozoid/following{/other_user}","gists_url":"https://api.github.com/users/matozoid/gists{/gist_id}","starred_url":"https://api.github.com/users/matozoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matozoid/subscriptions","organizations_url":"https://api.github.com/users/matozoid/orgs","repos_url":"https://api.github.com/users/matozoid/repos","events_url":"https://api.github.com/users/matozoid/events{/privacy}","received_events_url":"https://api.github.com/users/matozoid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2013-09-16T10:57:39Z","updated_at":"2015-02-26T18:59:15Z","closed_at":null,"body":"This was Júlio's plan with the project."},"comment":{"url":"https://api.github.com/repos/javaparser/javaparser/issues/comments/76243796","html_url":"https://github.com/javaparser/javaparser/issues/22#issuecomment-76243796","issue_url":"https://api.github.com/repos/javaparser/javaparser/issues/22","id":76243796,"user":{"login":"ptitjes","id":64956,"avatar_url":"https://avatars.githubusercontent.com/u/64956?v=3","gravatar_id":"","url":"https://api.github.com/users/ptitjes","html_url":"https://github.com/ptitjes","followers_url":"https://api.github.com/users/ptitjes/followers","following_url":"https://api.github.com/users/ptitjes/following{/other_user}","gists_url":"https://api.github.com/users/ptitjes/gists{/gist_id}","starred_url":"https://api.github.com/users/ptitjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptitjes/subscriptions","organizations_url":"https://api.github.com/users/ptitjes/orgs","repos_url":"https://api.github.com/users/ptitjes/repos","events_url":"https://api.github.com/users/ptitjes/events{/privacy}","received_events_url":"https://api.github.com/users/ptitjes/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T18:59:15Z","updated_at":"2015-02-26T18:59:15Z","body":"@matozoid I was.\r\n\r\nDuring 2012-2013, I developed a tool for my work to do what I call \"massive refactorings\".\r\nThat is pattern-based (patterns with both syntactic and semantic filtering) selection and rewriting of nodes. We used it for a lot of tasks because we had a gigantic source code base. Each I had identified a refactoring that could be made multiple times, I programmed a script to apply it. We also used it to generate code. We just started to redevelop something similar with @ftomassetti.\r\n\r\nAs for whitespace preserving, at that time, I had a custom DumpVisitor that used heuristics based on the positions but this really dirty and not working correctly every time. I have some better ideas to preserve white-spaces now and I started to develop a proof of concept there: https://github.com/ptitjes/javaparser/tree/lex-preserving"}}