{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2621","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2621/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2621/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2621/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2621","id":66392518,"number":2621,"title":"Question : Dependency Diagram from `SourceFile`s","user":{"login":"basarat","id":874898,"avatar_url":"https://avatars.githubusercontent.com/u/874898?v=3","gravatar_id":"","url":"https://api.github.com/users/basarat","html_url":"https://github.com/basarat","followers_url":"https://api.github.com/users/basarat/followers","following_url":"https://api.github.com/users/basarat/following{/other_user}","gists_url":"https://api.github.com/users/basarat/gists{/gist_id}","starred_url":"https://api.github.com/users/basarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basarat/subscriptions","organizations_url":"https://api.github.com/users/basarat/orgs","repos_url":"https://api.github.com/users/basarat/repos","events_url":"https://api.github.com/users/basarat/events{/privacy}","received_events_url":"https://api.github.com/users/basarat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/API","name":"API","color":"bfe5bf"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-05T02:31:15Z","updated_at":"2015-04-08T16:46:23Z","closed_at":null,"body":"I am trying to create a dependency diagram https://github.com/TypeStrong/atom-typescript/issues/234 However `sourceFile.referencedFiles` doesn't seem to point to `imported` files. \r\n\r\nIs there some other property I should be looking at or will I need to go back to `ts.preProcessFile` / `preProcessedFileInfo.importedFiles` "},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/90971644","html_url":"https://github.com/Microsoft/TypeScript/issues/2621#issuecomment-90971644","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2621","id":90971644,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T16:46:23Z","updated_at":"2015-04-08T16:46:23Z","body":"They are on the AST already. I believe the proposal is to add a helper that returns the top level imports in a file."}}