{"action":"created","issue":{"url":"https://api.github.com/repos/SwiftDocOrg/swiftdoc-parser/issues/2","labels_url":"https://api.github.com/repos/SwiftDocOrg/swiftdoc-parser/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/SwiftDocOrg/swiftdoc-parser/issues/2/comments","events_url":"https://api.github.com/repos/SwiftDocOrg/swiftdoc-parser/issues/2/events","html_url":"https://github.com/SwiftDocOrg/swiftdoc-parser/issues/2","id":54706371,"number":2,"title":"Enable parsing of headers from third-party Swift frameworks","user":{"login":"kareman","id":46072,"avatar_url":"https://avatars.githubusercontent.com/u/46072?v=3","gravatar_id":"","url":"https://api.github.com/users/kareman","html_url":"https://github.com/kareman","followers_url":"https://api.github.com/users/kareman/followers","following_url":"https://api.github.com/users/kareman/following{/other_user}","gists_url":"https://api.github.com/users/kareman/gists{/gist_id}","starred_url":"https://api.github.com/users/kareman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kareman/subscriptions","organizations_url":"https://api.github.com/users/kareman/orgs","repos_url":"https://api.github.com/users/kareman/repos","events_url":"https://api.github.com/users/kareman/events{/privacy}","received_events_url":"https://api.github.com/users/kareman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T19:09:40Z","updated_at":"2015-01-19T02:13:45Z","closed_at":"2015-01-19T02:09:37Z","body":"When I try to parse [this header](https://gist.github.com/kareman/3d8027809b4cd1364c5c) I get the error message `Error: couldn't find 'NSFileHandle' for extension.`. If I add empty declarations for all the types the parser can't find, like so:\r\n\r\n```swift\r\nclass NSFileHandle {}\r\n\r\nstruct String {}\r\n\r\nprotocol Streamable {}\r\nprotocol OutputStreamType {}\r\n```\r\n\r\nI get the error message \r\n\r\n```\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: write EPIPE\r\n    at errnoException (net.js:904:11)\r\n    at Object.afterWrite (net.js:720:19)\r\n```"},"comment":{"url":"https://api.github.com/repos/SwiftDocOrg/swiftdoc-parser/issues/comments/70438668","html_url":"https://github.com/SwiftDocOrg/swiftdoc-parser/issues/2#issuecomment-70438668","issue_url":"https://api.github.com/repos/SwiftDocOrg/swiftdoc-parser/issues/2","id":70438668,"user":{"login":"natecook1000","id":7053374,"avatar_url":"https://avatars.githubusercontent.com/u/7053374?v=3","gravatar_id":"","url":"https://api.github.com/users/natecook1000","html_url":"https://github.com/natecook1000","followers_url":"https://api.github.com/users/natecook1000/followers","following_url":"https://api.github.com/users/natecook1000/following{/other_user}","gists_url":"https://api.github.com/users/natecook1000/gists{/gist_id}","starred_url":"https://api.github.com/users/natecook1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natecook1000/subscriptions","organizations_url":"https://api.github.com/users/natecook1000/orgs","repos_url":"https://api.github.com/users/natecook1000/repos","events_url":"https://api.github.com/users/natecook1000/events{/privacy}","received_events_url":"https://api.github.com/users/natecook1000/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T02:13:44Z","updated_at":"2015-01-19T02:13:44Z","body":"That should parse properly now without added fake declarations. The extensions will have a \"kind\" of \"extension\", which isn't supported in the downstream documentation building yet, but you should be able to get the JSON output now.\r\n\r\nIf you do want the fake declarations, so you end up with the correct `struct` vs `class` vs `protocol`, I think you probably need a line break between the opening and closing braces. The parser has only been tested with one input source, so it has some brittle places -- I'll add that as a new issue."}}