[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:
committed by
Space Team
parent
52f6868b74
commit
e8f8399af4
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user