{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/source_gen/issues/388","repository_url":"https://api.github.com/repos/dart-lang/source_gen","labels_url":"https://api.github.com/repos/dart-lang/source_gen/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/source_gen/issues/388/comments","events_url":"https://api.github.com/repos/dart-lang/source_gen/issues/388/events","html_url":"https://github.com/dart-lang/source_gen/issues/388","id":390282989,"node_id":"MDU6SXNzdWUzOTAyODI5ODk=","number":388,"title":"LibraryReader.classElements should include enums","user":{"login":"simolus3","id":5738860,"node_id":"MDQ6VXNlcjU3Mzg4NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/5738860?v=4","gravatar_id":"","url":"https://api.github.com/users/simolus3","html_url":"https://github.com/simolus3","followers_url":"https://api.github.com/users/simolus3/followers","following_url":"https://api.github.com/users/simolus3/following{/other_user}","gists_url":"https://api.github.com/users/simolus3/gists{/gist_id}","starred_url":"https://api.github.com/users/simolus3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simolus3/subscriptions","organizations_url":"https://api.github.com/users/simolus3/orgs","repos_url":"https://api.github.com/users/simolus3/repos","events_url":"https://api.github.com/users/simolus3/events{/privacy}","received_events_url":"https://api.github.com/users/simolus3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-12T15:40:39Z","updated_at":"2018-12-12T23:44:26Z","closed_at":"2018-12-12T23:44:26Z","author_association":"NONE","body":"The iterable obtained from `LibraryReader.classElements` does not contain enum classes defined in the respective compilation unit. Given that enums are also represented with a `ClassElement` from the analyzer, I would expect them to be included.\r\nI see that the documentation specifically points out that `class` elements defined in the library will be returned, but I think that this makes the name `classElements` a bit confusing. Perhaps there should be a getter `classes`, one for `enums` and one for both?"}}
{"actor":{"display_login":"natebosch"}}