FIR: Rework loading overrides of special built-in methods from Java

Some of the changed data is correct, but some diagnostics are incorrect
Corner cases like having both contains(Object) and contains(String)
within implementation of Collection<String> is not supported
This commit is contained in:
Denis.Zharkov
2021-02-17 18:31:57 +03:00
parent 4b0aeb7105
commit 45018ea468
25 changed files with 725 additions and 372 deletions
@@ -52,46 +52,25 @@ KtFirJavaFieldSymbol:
symbolKind: MEMBER
visibility: PRIVATE
KtFirFunctionSymbol:
KtFirSyntheticJavaPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: java.lang.String.length
dispatchType: java/lang/String
isExtension: false
isExternal: false
isInline: false
isOperator: false
isOverride: false
isSuspend: false
modality: OPEN
name: length
origin: JAVA
receiverType: null
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: PUBLIC
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin.CharSequence.length
dispatchType: kotlin/CharSequence
getter: KtFirPropertyGetterSymbol(<getter>)
hasBackingField: false
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: null
isConst: false
isExtension: false
isLateInit: false
isOverride: false
isVal: true
modality: ABSTRACT
javaGetterName: length
javaSetterName: null
modality: OPEN
name: length
origin: LIBRARY
origin: JAVA_SYNTHETIC_PROPERTY
receiverType: null
setter: null
symbolKind: MEMBER