Files
kotlin-fork/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/enumEntry.pretty.txt
T
Denis.Zharkov 2e5b783cc6 K2: Refine how JDK members are mapped to built-in classes
Previously, the semantic was more-or-less correct for most of the cases
but some corner one, like `sort` in MutableList didn't work properly.

Namely, `sort` should be marked there in a way to forbid to call it
everywhere beside super-calls.
Also, overriding it should be allowed.

Mostly, the logic was re-written to K2 model from K1-related
JvmBuiltInsCustomizer.

^KT-57694 In progress
^KT-57269 Fixed
2023-05-30 10:44:41 +00:00

68 lines
1.5 KiB
Plaintext
Vendored

element: e
implicit receivers:
type: `<anonymous>`
owner symbol: KtFirAnonymousObjectSymbol
type: kotlin.Enum.Companion
owner symbol: KtFirNamedClassOrObjectSymbol
scopes:
LocalScope, index = 0, empty
LocalScope, index = 1, empty
SimpleTypeScope, index = 2
classifiers: 1
companion object
callables: 11
val x: kotlin.String
fun foo()
fun clone(): kotlin.Any
fun compareTo(other: E): kotlin.Int
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
val name: kotlin.String
val ordinal: kotlin.Int
fun getDeclaringClass(): java.lang.Class<E?>?
fun finalize()
StaticMemberScope, index = 3
classifiers: 0
callables: 4
A
fun values(): kotlin.Array<E>
fun valueOf(value: kotlin.String): E
val entries: kotlin.enums.EnumEntries<E>
StaticMemberScope, index = 4
classifiers: 1
companion object
callables: 0
SimpleTypeScope, index = 5
classifiers: 0
callables: 3
fun equals(other: kotlin.Any?): kotlin.Boolean
fun hashCode(): kotlin.Int
fun toString(): kotlin.String
ExplicitSimpleImportingScope, index = 6, empty
PackageMemberScope, index = 7
classifiers: 1
enum class E
callables: 0
DefaultSimpleImportingScope, index = 8
DefaultSimpleImportingScope, index = 9
ExplicitStarImportingScope, index = 10, empty
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 12
DefaultStarImportingScope, index = 13