Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for rethrow (0.72 sec)

  1. analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/throwStmt.txt

    expression: THROW
    text: throw Exception()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 05 15:06:52 UTC 2022
    - 68 bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/tryThrowsToFinallyInner.kt

    fun test() {
        try {
            throw Exception()
        } finally {
            <expr>9</expr>
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 05 15:06:52 UTC 2022
    - 95 bytes
    - Viewed (0)
  3. analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/impl/KtStandaloneProjectStructureProvider.kt

            if (virtualFile == null) {
                throw KotlinExceptionWithAttachments("Cannot find a KtModule for a non-physical file")
                    .withPsiAttachment("containingFile", containingFile)
                    .withAttachment("contextualModule", contextualModule?.asDebugString())
            }
    
            return allKtModules.firstOrNull { module -> virtualFile in module.contentScope }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Apr 10 16:23:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/conditionalJumps/break.kt

    // WITH_STDLIB
    
    fun test(a: Int): Int {
        val b: Int = a + 10
        for (n in 1..b) {
            <expr>if (n > 5) throw Exception("")
            if (a + n > b) break
            println(b - n)</expr>
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Mar 14 10:53:11 UTC 2024
    - 197 bytes
    - Viewed (0)
  5. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/defaultTryCatch2.kt

    // WITH_STDLIB
    
    fun test() {
        consume(1)
        <expr>try {
            dangerous()
        } catch (e: FooException) {
            consume(e.message?.length ?: 0)
            throw e
        }</expr>
    }
    
    fun consume(n: Int) {}
    
    @Throws(FooException::class)
    fun dangerous(): String {
        return "foo"
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Mar 14 10:53:11 UTC 2024
    - 315 bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10DataFlowInfoProvider.kt

    internal class KaFe10DataFlowInfoProvider(override val analysisSession: KaSession) : KaDataFlowInfoProvider() {
        override fun getExitPointSnapshot(statements: List<KtExpression>): KaDataFlowExitPointSnapshot {
            throw NotImplementedError("Method is not implemented for FE 1.0")
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 924 bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/annotations/KtEmptyAnnotationsList.kt

        override fun iterator(): Iterator<KaAnnotation> = withValidityAssertion {
            return Collections.emptyIterator()
        }
    
        override fun get(index: Int): KaAnnotation = withValidityAssertion {
            throw IndexOutOfBoundsException("Index $index out of bounds")
        }
    
        override fun contains(classId: ClassId): Boolean = withValidityAssertion {
            return false
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionInfoProvider.kt

         *
         * **Note!** This is a conservative check, not a control-flow analysis.
         * E.g. `x` in the following example *is possibly used*, even though the
         * value is never consumed at runtime.
         *   - `x + try { throw Exception() } finally { return }`
         *
         */
        public fun KtExpression.isUsedAsExpression(): Boolean =
            withValidityAssertion { analysisSession.expressionInfoProvider.isUsedAsExpression(this) }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolDeclarationOverridesProvider.kt

                is KaFirAnonymousObjectSymbol -> processOverrides(containingDeclaration, callableSymbol, process)
                else -> throw IllegalStateException("Expected $containingDeclaration to be a KtFirNamedClassOrObjectSymbol or KtFirAnonymousObjectSymbol")
            }
        }
    
        private inline fun processOverrides(
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                // when is an `else`.
                is KtWhenExpression ->
                    parent.subjectExpression == child && parent.entries.firstOrNull()?.isElse == false
    
                // Throw expressions use the expression thrown.
                is KtThrowExpression ->
                    parent.thrownExpression == child
    
                // Body and catch blocks of try-catch expressions are used if the try-catch itself
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top