{"action":"created","issue":{"url":"https://api.github.com/repos/olov/ng-annotate/issues/201","labels_url":"https://api.github.com/repos/olov/ng-annotate/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/olov/ng-annotate/issues/201/comments","events_url":"https://api.github.com/repos/olov/ng-annotate/issues/201/events","html_url":"https://github.com/olov/ng-annotate/issues/201","id":111994309,"number":201,"title":"Sourcemaps missing mappings for closing brace","user":{"login":"tyson-benson","id":780755,"avatar_url":"https://avatars.githubusercontent.com/u/780755?v=3","gravatar_id":"","url":"https://api.github.com/users/tyson-benson","html_url":"https://github.com/tyson-benson","followers_url":"https://api.github.com/users/tyson-benson/followers","following_url":"https://api.github.com/users/tyson-benson/following{/other_user}","gists_url":"https://api.github.com/users/tyson-benson/gists{/gist_id}","starred_url":"https://api.github.com/users/tyson-benson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyson-benson/subscriptions","organizations_url":"https://api.github.com/users/tyson-benson/orgs","repos_url":"https://api.github.com/users/tyson-benson/repos","events_url":"https://api.github.com/users/tyson-benson/events{/privacy}","received_events_url":"https://api.github.com/users/tyson-benson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-18T01:33:56Z","updated_at":"2015-10-19T06:40:39Z","closed_at":null,"body":"Hi there,\r\n\r\nGreat work on the plugin so far, I found an issue using the sourcemaps, there is no mapping produced for the closing brace for control blocks and functions. For example, when debugging in Chrome i can put a breakpoint on the third line in the source mapped TypeScript before applying ng-annotate example below:\r\n\r\n```\r\nvar foo = () => {\r\n    doSomething();\r\n} // <-- can put breakpoint here\r\n```\r\n```\r\nif (condition) {\r\n    foo();\r\n} // <-- can put breakpoint here\r\n```\r\n\r\nBut after using ng-annotate, the lines on which i can put breakpoints are limited to the top two in the examples above. Is there a possibility you can change the sourcemap generator to create the appropriate mappings to preserve support for this?\r\n\r\nLet me know if you need more info, it is easy to reproduce. In chrome it is easier to spot, as the lines with a closing brace are grayed out and you cannot insert the breakpoints.\r\n"},"comment":{"url":"https://api.github.com/repos/olov/ng-annotate/issues/comments/149117160","html_url":"https://github.com/olov/ng-annotate/issues/201#issuecomment-149117160","issue_url":"https://api.github.com/repos/olov/ng-annotate/issues/201","id":149117160,"user":{"login":"olov","id":19247,"avatar_url":"https://avatars.githubusercontent.com/u/19247?v=3","gravatar_id":"","url":"https://api.github.com/users/olov","html_url":"https://github.com/olov","followers_url":"https://api.github.com/users/olov/followers","following_url":"https://api.github.com/users/olov/following{/other_user}","gists_url":"https://api.github.com/users/olov/gists{/gist_id}","starred_url":"https://api.github.com/users/olov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olov/subscriptions","organizations_url":"https://api.github.com/users/olov/orgs","repos_url":"https://api.github.com/users/olov/repos","events_url":"https://api.github.com/users/olov/events{/privacy}","received_events_url":"https://api.github.com/users/olov/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T06:40:39Z","updated_at":"2015-10-19T06:40:39Z","body":"Thanks for the bug report - this is hopefully easy to fix. @smrq would you be able to take a look at it?"}}