[FIR2IR] Properly cache generated data/value class members

FIR instances of generated toString/hashCode/equals are session dependant,
  so we need some cache, which operates only session-independent stuff.
  Pair of `FirClass` and `Name` was chosen here

Previously SymbolTable played the role of this cache (with signatures as
  keys). But it should be replaced in scope of KT-66341 and KT-64990
This commit is contained in:
Dmitriy Novozhilov
2024-03-05 11:43:07 +02:00
committed by Space Team
parent 52f6868b74
commit e8f8399af4
4 changed files with 47 additions and 7 deletions
@@ -113,4 +113,9 @@ object OperatorNameConventions {
RANGE_TO to "..",
RANGE_UNTIL to "..<",
)
fun isComponentN(name: Name): Boolean {
val identifier = name.identifierOrNullIfSpecial ?: return false
return COMPONENT_REGEX.matches(identifier)
}
}