4d29d6e3b4
We should process generated property as a part of the primary constructor.
This was already implemented in 8387ea8a, but some parts were missed.
ClassDiagnosticRetriever:
* dropped relation to properties generated from constructor parameters
as they should belong to the primary constructor only
* accurate logic to fully visit an implicit primary constructor to be
able to process nested declarations (e.g., inside a super type call)
SingleNonLocalDeclarationDiagnosticRetriever:
* add relation to generated properties as now they fully belong to
the constructor
FileElementFactory:
* dropped explicit resolution of generated properties from a constructor
* added explicit resolution of generated enum members for consistency.
Effectively, this is not required because we don't have compiler
checkers for such generated enum member declarations
ClassDeclarationStructureElement:
* do not collect mapping for generated properties from constructor
* explicitly declare that we should process only ClassDelegationField
^KT-62437 Fixed
5 lines
197 B
Plaintext
Vendored
5 lines
197 B
Plaintext
Vendored
Diagnostics from elements:
|
|
for PSI element of type KtNameReferenceExpression at (6,17-27)
|
|
UNRESOLVED_REFERENCE text ranges: [(147,157)]
|
|
PSI: KtNameReferenceExpression at (6,17-27)
|