المشاريع
عرض على GitHub
fbsamples/kotlin_ast_tools
حول
Utilities and examples used in Meta to simplify migration from Java to Kotlin and maintenance of Kotlin code.
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلKotlin AST Tools by Meta
These 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.
We 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.
Currently, there are three packages here:
com.facebook.asttoolscontaining some utilities we use to simplify work with the Kotlin compiler APIcom.facebook.matchingcontaining a helper class to allow simple and readable refactors to a Kotlin filecom.facebook.kotlin.postconversioncontaining a few examples of common cleanups of newly converted Kotlin files, and a simple command line tool to run them.
Running the tool
The example tool can be built and run with gradle:
./gradlew run <kotlin files>
License
Apache License 2.0
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…