{"id":17248845,"url":"https://github.com/serras/fir-tree","last_synced_at":"2025-04-14T05:31:29.512Z","repository":{"id":210592145,"uuid":"726752282","full_name":"serras/fir-tree","owner":"serras","description":"IntelliJ plug-in to visualize the Frontend Intermediate Representation (FIR tree) of a piece of Kotlin code","archived":false,"fork":false,"pushed_at":"2025-03-22T07:06:00.000Z","size":523,"stargazers_count":40,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T19:41:53.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-03T09:44:07.000Z","updated_at":"2025-03-22T07:05:46.000Z","dependencies_parsed_at":"2024-04-03T20:24:43.499Z","dependency_job_id":"908360cb-f9ed-4a14-a08d-515090c50742","html_url":"https://github.com/serras/fir-tree","commit_stats":null,"previous_names":["serras/fir-tree"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Ffir-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Ffir-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Ffir-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Ffir-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serras","download_url":"https://codeload.github.com/serras/fir-tree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248826574,"owners_count":21167715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:42:15.857Z","updated_at":"2025-04-14T05:31:29.146Z","avatar_url":"https://github.com/serras.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FIR Tree\n\n\u003e Visualize Kotlin's Frontend Intermediate Representation (FIR) and Control Flow Graphs (CFG) right in your IDE\n\n### Available at [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/23270-fir-tree)\n\nThis plug-in helps you to understand the way the K2 Kotlin compiler represents the code internally.\n\n- Adjustable resolution phase (the last one, `BODY_RESOLVE`, is the default),\n- Click on a node in the tree to select it in the editor,\n- Non-visible nodes are shown in italics and slightly grayed out,\n- Visualize the control flow graph of a declaration.\n\nHere's the outcome for this piece of code, fully resolved.\n\n```kotlin\npackage function.equality\n\nimport kotlinx.coroutines.*\n\nfun increment(x: Int) = x + 1\n```\n\n![FIR tree of the code above](images/example.png)\n\n![Example of control flow graph](images/cfg.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserras%2Ffir-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserras%2Ffir-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserras%2Ffir-tree/lists"}