{"id":19399702,"url":"https://github.com/fbsamples/kotlin_ast_tools","last_synced_at":"2025-04-04T10:06:39.809Z","repository":{"id":62115636,"uuid":"491205746","full_name":"fbsamples/kotlin_ast_tools","owner":"fbsamples","description":"Utilities and examples used in Meta to simplify migration from Java to Kotlin and maintenance of Kotlin code.","archived":false,"fork":false,"pushed_at":"2025-03-13T18:54:58.000Z","size":312,"stargazers_count":182,"open_issues_count":4,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-28T09:06:12.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fbsamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-05-11T17:15:08.000Z","updated_at":"2025-03-13T18:55:02.000Z","dependencies_parsed_at":"2023-01-27T21:40:19.019Z","dependency_job_id":"50079be2-8b24-41ed-9234-038a5e01c9f4","html_url":"https://github.com/fbsamples/kotlin_ast_tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fkotlin_ast_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fkotlin_ast_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fkotlin_ast_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fkotlin_ast_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbsamples","download_url":"https://codeload.github.com/fbsamples/kotlin_ast_tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157081,"owners_count":20893202,"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-11-10T11:10:55.061Z","updated_at":"2025-04-04T10:06:39.778Z","avatar_url":"https://github.com/fbsamples.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotlin AST Tools by Meta\n\nThese are various examples, tools and utilities extracted from Meta's Java to Kotlin migration effort. Some of these may be directly used, and some are supplied as examples and inspirations to encourage more automated editing of Kotlin code.\n\nWe are releasing this to provide examples of AST manipulation in Kotlin using Kotlin APIs in hope that this will encourage more people to use them.\n\nCurrently, there are three packages here:\n1. `com.facebook.asttools` containing some utilities we use to simplify work with the Kotlin compiler API\n2. `com.facebook.matching` containing a helper class to allow simple and readable refactors to a Kotlin file\n3. `com.facebook.kotlin.postconversion` containing a few examples of common cleanups of newly converted Kotlin files, and a simple command line tool to run them.\n\n## Running the tool\n\nThe example tool can be built and run with gradle:\n\n```shell\n./gradlew run \u003ckotlin files\u003e\n```\n\n## License\n\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbsamples%2Fkotlin_ast_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbsamples%2Fkotlin_ast_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbsamples%2Fkotlin_ast_tools/lists"}