Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findSmallestElementOfTypeContainingSelection (0.4 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

        ): ShortenCommand {
            require(!file.isCompiled) { "No sense to collect references for shortening in compiled file $file" }
    
            val declarationToVisit = file.findSmallestElementOfTypeContainingSelection<KtDeclaration>(selection)
                ?: file
    
            val firDeclaration = declarationToVisit.getCorrespondingFirElement() ?: return ShortenCommandImpl(
                @Suppress("DEPRECATION")
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
Back to top