{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/11511","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/11511/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/11511/comments","events_url":"https://api.github.com/repos/apple/swift/issues/11511/events","html_url":"https://github.com/apple/swift/pull/11511","id":251329128,"number":11511,"title":"[WIP] [Do Not Merge] [SwiftSyntax] Swift Diagnostics API","user":{"login":"harlanhaskins","id":853032,"avatar_url":"https://avatars1.githubusercontent.com/u/853032?v=4","gravatar_id":"","url":"https://api.github.com/users/harlanhaskins","html_url":"https://github.com/harlanhaskins","followers_url":"https://api.github.com/users/harlanhaskins/followers","following_url":"https://api.github.com/users/harlanhaskins/following{/other_user}","gists_url":"https://api.github.com/users/harlanhaskins/gists{/gist_id}","starred_url":"https://api.github.com/users/harlanhaskins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlanhaskins/subscriptions","organizations_url":"https://api.github.com/users/harlanhaskins/orgs","repos_url":"https://api.github.com/users/harlanhaskins/repos","events_url":"https://api.github.com/users/harlanhaskins/events{/privacy}","received_events_url":"https://api.github.com/users/harlanhaskins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-08-18T18:51:19Z","updated_at":"2017-12-11T23:45:23Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/11511","html_url":"https://github.com/apple/swift/pull/11511","diff_url":"https://github.com/apple/swift/pull/11511.diff","patch_url":"https://github.com/apple/swift/pull/11511.patch"},"body":"This patch provides an initial implementation of a diagnostic serialization API from Swift. This allows popping diagnostics from Swift files and serializing them out to clang-compatible `.dia` files using the LLVM Bitstream format.\r\n\r\nWork left:\r\n\r\n- [ ] Add tests using `c-index-test`\r\n- [ ] Discuss using `Syntax` nodes for `Diagnostic` locations instead of `SourceLocation`\r\n- [ ] Integrate this and `SwiftSyntax` together"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/350896130","html_url":"https://github.com/apple/swift/pull/11511#issuecomment-350896130","issue_url":"https://api.github.com/repos/apple/swift/issues/11511","id":350896130,"user":{"login":"nkcsgexi","id":2191945,"avatar_url":"https://avatars0.githubusercontent.com/u/2191945?v=4","gravatar_id":"","url":"https://api.github.com/users/nkcsgexi","html_url":"https://github.com/nkcsgexi","followers_url":"https://api.github.com/users/nkcsgexi/followers","following_url":"https://api.github.com/users/nkcsgexi/following{/other_user}","gists_url":"https://api.github.com/users/nkcsgexi/gists{/gist_id}","starred_url":"https://api.github.com/users/nkcsgexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkcsgexi/subscriptions","organizations_url":"https://api.github.com/users/nkcsgexi/orgs","repos_url":"https://api.github.com/users/nkcsgexi/repos","events_url":"https://api.github.com/users/nkcsgexi/events{/privacy}","received_events_url":"https://api.github.com/users/nkcsgexi/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T23:45:23Z","updated_at":"2017-12-11T23:45:23Z","author_association":"CONTRIBUTOR","body":"Sounds great! I was thinking about having a way to diagnose any \"UnknownXXX\" appearing in a given source file. For instance, we run a command `swiftc -lint -lint-checker=checker.swift` where `checker.swift` visits all libSyntax nodes and errs any unknown entities. The output will be error messages indicating the source ranges of any unknown entities. IMO, this will be a good way to diagnose/test libSyntax parsing."}}
{"actor":{"display_login":"nkcsgexi"}}