{"action":"created","issue":{"url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1146","labels_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1146/comments","events_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1146/events","html_url":"https://github.com/jsdoc3/jsdoc/issues/1146","id":127025583,"number":1146,"title":"How to access both code and its doclet in plugin?","user":{"login":"zandaqo","id":8959662,"avatar_url":"https://avatars.githubusercontent.com/u/8959662?v=3","gravatar_id":"","url":"https://api.github.com/users/zandaqo","html_url":"https://github.com/zandaqo","followers_url":"https://api.github.com/users/zandaqo/followers","following_url":"https://api.github.com/users/zandaqo/following{/other_user}","gists_url":"https://api.github.com/users/zandaqo/gists{/gist_id}","starred_url":"https://api.github.com/users/zandaqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zandaqo/subscriptions","organizations_url":"https://api.github.com/users/zandaqo/orgs","repos_url":"https://api.github.com/users/zandaqo/repos","events_url":"https://api.github.com/users/zandaqo/events{/privacy}","received_events_url":"https://api.github.com/users/zandaqo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-16T13:41:03Z","updated_at":"2016-01-28T17:30:38Z","closed_at":null,"body":"Hi,\r\n\r\nThe other day, for my [plugin](https://github.com/zandaqo/jsdoc-plugin-named-defaults) I needed to compliment the params in the comment of a function with data from the code of the function. I went with listening to `symbolFound` event, which gives access to parsed code in `event.code`, however, the `event.comment` it gives is a simple string, unlike the `newDoclet` event where a parsed comment is supplied. On the other hand, `newDoclet` doesn't seem to give an access to the related code. \r\n\r\nSo, my question is, is there a way to get both the code with its parsed comment in one go without, say, listening to both events, storing data between them, etc.? Maybe there is another event or property that I'm overlooking here."},"comment":{"url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/comments/176293471","html_url":"https://github.com/jsdoc3/jsdoc/issues/1146#issuecomment-176293471","issue_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1146","id":176293471,"user":{"login":"zandaqo","id":8959662,"avatar_url":"https://avatars.githubusercontent.com/u/8959662?v=3","gravatar_id":"","url":"https://api.github.com/users/zandaqo","html_url":"https://github.com/zandaqo","followers_url":"https://api.github.com/users/zandaqo/followers","following_url":"https://api.github.com/users/zandaqo/following{/other_user}","gists_url":"https://api.github.com/users/zandaqo/gists{/gist_id}","starred_url":"https://api.github.com/users/zandaqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zandaqo/subscriptions","organizations_url":"https://api.github.com/users/zandaqo/orgs","repos_url":"https://api.github.com/users/zandaqo/repos","events_url":"https://api.github.com/users/zandaqo/events{/privacy}","received_events_url":"https://api.github.com/users/zandaqo/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T17:30:38Z","updated_at":"2016-01-28T17:30:38Z","body":"Apparently, `newDoclet` does provide the parsed code through `event.meta.code`, that answers my question. "}}