Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for flag (0.09 sec)

  1. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/expressionBlock.kt

    fun test(flag: Boolean) {
        if (flag) <expr>{
            consume(1)
        }</expr> else {
            consume(2)
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Mar 14 10:53:11 UTC 2024
    - 137 bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/differentTargets/return.kt

    fun test(flag: Boolean): Int {
        block {
            <expr>if (flag) {
                return 1
            }
    
            consume("foo")
            return@block</expr>
        }
    
        return 0
    }
    
    inline fun block(block: () -> Unit) {}
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Mar 14 10:53:11 UTC 2024
    - 240 bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/annotationValueCode.kt

    // WITH_STDLIB
    
    @file:Suppress("ANNOTATION_ARGUMENT_MUST_BE_CONST")
    package test
    
    annotation class Anno(val value: String)
    
    val flag: Boolean
        get() = true
    
    @Anno(value = buildString {
        <expr>append("Foo")
        if (flag) {
            append("Bar")
            return@buildString
        }
        append("Baz")</expr>
    })
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 320 bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/lambdaImplicitReturn.kt

    fun test(flag: Boolean) {
        block {
            consume("before")
    
            <expr>if (flag) {
                return@block 1
            }
    
            2</expr>
        }
    }
    
    fun block(block: () -> Int) {
        block()
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 228 bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10PsiTypeProvider.kt

                    typeMapper.typeContext.getOptimalModeForValueParameter(type.fe10Type)
            }.let { typeMappingMode ->
                // Otherwise, i.e., if we won't skip type with no type arguments, flag overriding might bother a case like:
                // @JvmSuppressWildcards(false) Long -> java.lang.Long, not long, even though it should be no-op!
                if (type.fe10Type.arguments.isEmpty())
                    typeMappingMode
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 20:26:34 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. ReadMe.md

    - `coreLibsTest` - build and run stdlib, reflect and kotlin-test tests
    - `gradlePluginTest` - build and run gradle plugin tests
    - `compilerTest` - build and run all compiler tests
    
    To reproduce TeamCity build use `-Pteamcity=true` flag. Local builds don't run proguard and have jar compression disabled by default.
    
    **OPTIONAL:** Some artifacts, mainly Maven plugin ones, are built separately with Maven.
    Refer to [libraries/ReadMe.md](libraries/ReadMe.md) for details.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Apr 11 14:28:46 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top