[AA] add API to get KtScriptSymbol for KtScript
^KT-61431
This commit is contained in:
committed by
Space Team
parent
700835ef13
commit
b6f34ad8c0
+3
@@ -135,6 +135,9 @@ public interface KtSymbolProviderMixIn : KtAnalysisSessionMixIn {
|
||||
public fun KtFile.getFileSymbol(): KtFileSymbol =
|
||||
withValidityAssertion { analysisSession.symbolProvider.getFileSymbol(this) }
|
||||
|
||||
public fun KtScript.getScriptSymbol(): KtScriptSymbol =
|
||||
withValidityAssertion { analysisSession.symbolProvider.getScriptSymbol(this) }
|
||||
|
||||
/**
|
||||
* Returns [KtPackageSymbol] corresponding to [packageFqName] if corresponding package is exists and visible from current uses-site scope,
|
||||
* `null` otherwise
|
||||
|
||||
Reference in New Issue
Block a user