FIR IDE: introduce SOURCE_MEMBER_GENERATED declaration kind

This commit is contained in:
Ilya Kirillov
2020-10-20 18:27:00 +03:00
parent 7dcda00e1d
commit fbc6f1b10f
5 changed files with 46 additions and 8 deletions
@@ -17,5 +17,14 @@ interface KtSymbol : ValidityTokenOwner {
}
enum class KtSymbolOrigin {
SOURCE, LIBRARY, JAVA, SAM_CONSTRUCTOR
SOURCE,
/**
* Declaration which do not have it's PSI source and was generated, they are:
* For data classes the `copy`, `component{N}`, `toString`, `equals`, `hashCode` functions are generated
* For enum classes the `valueOf` & `values` functions are generated
*/
SOURCE_MEMBER_GENERATED,
LIBRARY,
JAVA, SAM_CONSTRUCTOR
}