{"action":"opened","issue":{"url":"https://api.github.com/repos/jpsim/SourceKitten/issues/554","repository_url":"https://api.github.com/repos/jpsim/SourceKitten","labels_url":"https://api.github.com/repos/jpsim/SourceKitten/issues/554/labels{/name}","comments_url":"https://api.github.com/repos/jpsim/SourceKitten/issues/554/comments","events_url":"https://api.github.com/repos/jpsim/SourceKitten/issues/554/events","html_url":"https://github.com/jpsim/SourceKitten/issues/554","id":356118391,"node_id":"MDU6SXNzdWUzNTYxMTgzOTE=","number":554,"title":"Getting where clauses?","user":{"login":"mdiep","id":1302,"node_id":"MDQ6VXNlcjEzMDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1302?v=4","gravatar_id":"","url":"https://api.github.com/users/mdiep","html_url":"https://github.com/mdiep","followers_url":"https://api.github.com/users/mdiep/followers","following_url":"https://api.github.com/users/mdiep/following{/other_user}","gists_url":"https://api.github.com/users/mdiep/gists{/gist_id}","starred_url":"https://api.github.com/users/mdiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdiep/subscriptions","organizations_url":"https://api.github.com/users/mdiep/orgs","repos_url":"https://api.github.com/users/mdiep/repos","events_url":"https://api.github.com/users/mdiep/events{/privacy}","received_events_url":"https://api.github.com/users/mdiep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T20:44:03Z","updated_at":"2018-08-31T20:44:03Z","closed_at":null,"author_association":"NONE","body":"Given this file:\r\n\r\n```swift\r\nfunc f<C: Collection>(_: C) where C.Element == Int {}\r\n```\r\n\r\nIs there any way to get the `C.Element == Int` information?\r\n\r\nWhen I run `sourcekitten structure`, nothing like that is included:\r\n\r\n```swift\r\n{\r\n  \"key.diagnostic_stage\" : \"source.diagnostic.stage.swift.parse\",\r\n  \"key.length\" : 54,\r\n  \"key.offset\" : 0,\r\n  \"key.substructure\" : [\r\n    {\r\n      \"key.accessibility\" : \"source.lang.swift.accessibility.internal\",\r\n      \"key.bodylength\" : 0,\r\n      \"key.bodyoffset\" : 52,\r\n      \"key.kind\" : \"source.lang.swift.decl.function.free\",\r\n      \"key.length\" : 53,\r\n      \"key.name\" : \"f(_:)\",\r\n      \"key.namelength\" : 22,\r\n      \"key.nameoffset\" : 5,\r\n      \"key.offset\" : 0,\r\n      \"key.substructure\" : [\r\n        {\r\n          \"key.elements\" : [\r\n            {\r\n              \"key.kind\" : \"source.lang.swift.structure.elem.typeref\",\r\n              \"key.length\" : 10,\r\n              \"key.offset\" : 10\r\n            }\r\n          ],\r\n          \"key.inheritedtypes\" : [\r\n            {\r\n              \"key.name\" : \"Collection\"\r\n            }\r\n          ],\r\n          \"key.kind\" : \"source.lang.swift.decl.generic_type_param\",\r\n          \"key.length\" : 13,\r\n          \"key.name\" : \"C\",\r\n          \"key.namelength\" : 1,\r\n          \"key.nameoffset\" : 7,\r\n          \"key.offset\" : 7\r\n        },\r\n        {\r\n          \"key.kind\" : \"source.lang.swift.decl.var.parameter\",\r\n          \"key.length\" : 4,\r\n          \"key.namelength\" : 0,\r\n          \"key.nameoffset\" : 0,\r\n          \"key.offset\" : 22,\r\n          \"key.typename\" : \"C\"\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nI'm just getting started with SourceKit/SourceKitten and would appreciate any direction you could give or resources I should be looking at. 😅 "}}
{"actor":{"display_login":"mdiep"}}