{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/package_config/issues/19","labels_url":"https://api.github.com/repos/dart-lang/package_config/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/package_config/issues/19/comments","events_url":"https://api.github.com/repos/dart-lang/package_config/issues/19/events","html_url":"https://github.com/dart-lang/package_config/issues/19","id":83678792,"number":19,"title":"API for collecting all \"context root\" subdirectories from a given directory ","user":{"login":"pq","id":67586,"avatar_url":"https://avatars.githubusercontent.com/u/67586?v=3","gravatar_id":"","url":"https://api.github.com/users/pq","html_url":"https://github.com/pq","followers_url":"https://api.github.com/users/pq/followers","following_url":"https://api.github.com/users/pq/following{/other_user}","gists_url":"https://api.github.com/users/pq/gists{/gist_id}","starred_url":"https://api.github.com/users/pq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pq/subscriptions","organizations_url":"https://api.github.com/users/pq/orgs","repos_url":"https://api.github.com/users/pq/repos","events_url":"https://api.github.com/users/pq/events{/privacy}","received_events_url":"https://api.github.com/users/pq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/package_config/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-01T20:29:15Z","updated_at":"2015-06-01T20:29:15Z","closed_at":null,"body":"For `analyzer` (and `server`) integration we need a means to map a directory to it's subdirectories which have corresponding package maps (and so should be treated as analysis context roots).\r\n\r\nNot a good name but this captures the basic idea.\r\n```\r\n/// Given this directory find all subdirectories for which there is a new\r\n/// package map.\r\nstatic Future<Map<Directory,Packages>> findAll(Directory dir);\r\n```"}}