Files
kotlin-fork/analysis/analysis-api/testData/symbols/symbolByReference/scriptArgument.txt
T
Ilya Chernikov 9037975758 K2 Scripting: Skip base class params from resolution scope
The base class in scripting considered obsolete and therefore supported
via some ad-hoc mechanisms. In particular parameters to the base class
c-tor are passed via script provided properties. But in combination
with the resolution logic, this leads to issues described in KT-60452
This commits filters out such parameters from script resolution
scope and avoids this problem for now.
Bot it should be noted that proper diagnostics for properties shadowing
should still be implemented - see #KT-65809
#KT-60452 fixed
2024-02-23 22:03:44 +00:00

105 lines
3.1 KiB
Plaintext
Vendored

KtKotlinPropertySymbol:
annotationsList: []
backingFieldSymbol: KtBackingFieldSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
isExtension: false
name: field
origin: PROPERTY_BACKING_FIELD
owningProperty: KtKotlinPropertySymbol(kotlin/script/templates/standard/ScriptTemplateWithArgs.args)
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/String
]
type: kotlin/Array<kotlin/String>
symbolKind: LOCAL
typeParameters: []
getContainingFileSymbol: null
getContainingJvmClassName: kotlin.script.templates.standard.ScriptTemplateWithArgs
getContainingModule: KtLibraryModule "Library kotlin-script-runtime"
deprecationStatus: null
callableIdIfNonLocal: kotlin/script/templates/standard/ScriptTemplateWithArgs.args
contextReceivers: []
getter: KtPropertyGetterSymbol:
annotationsList: []
callableIdIfNonLocal: null
contextReceivers: []
hasBody: false
hasStableParameterNames: true
isDefault: true
isExtension: false
isInline: false
isOverride: false
modality: FINAL
origin: LIBRARY
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/String
]
type: kotlin/Array<kotlin/String>
symbolKind: ACCESSOR
typeParameters: []
valueParameters: []
visibility: Public
getDispatchReceiver(): KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/script/templates/standard/ScriptTemplateWithArgs
getContainingFileSymbol: null
getContainingJvmClassName: kotlin.script.templates.standard.ScriptTemplateWithArgs
getContainingModule: KtLibraryModule "Library kotlin-script-runtime"
deprecationStatus: null
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: null
isActual: false
isConst: false
isDelegatedProperty: false
isExpect: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: args
origin: LIBRARY
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/String
]
type: kotlin/Array<kotlin/String>
setter: null
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/script/templates/standard/ScriptTemplateWithArgs
getContainingFileSymbol: null
getContainingJvmClassName: kotlin.script.templates.standard.ScriptTemplateWithArgs
getContainingModule: KtLibraryModule "Library kotlin-script-runtime"
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getArgs
javaSetterName: null
setterDeprecationStatus: null