[Analysis API] change return type of KtScope.getAllSymbols to KtDeclaration symbol as it always returns callable or classifier
This commit is contained in:
@@ -13,9 +13,9 @@ import org.jetbrains.kotlin.name.Name
|
||||
|
||||
public interface KtScope : KtScopeLike {
|
||||
/**
|
||||
* Return a sequence of all [KtSymbol] which current scope contain
|
||||
* Return a sequence of all [KtDeclarationSymbol] which current scope contain
|
||||
*/
|
||||
public fun getAllSymbols(): Sequence<KtSymbol> = withValidityAssertion {
|
||||
public fun getAllSymbols(): Sequence<KtDeclarationSymbol> = withValidityAssertion {
|
||||
sequence {
|
||||
yieldAll(getCallableSymbols())
|
||||
yieldAll(getClassifierSymbols())
|
||||
|
||||
Reference in New Issue
Block a user