Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 143 for pexpr (0.03 sec)

  1. analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/propertyDelegate.kt

    val lazyFun: Int by <expr>lazy {
        1000
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 08 19:07:43 UTC 2024
    - 50 bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/infixOperatorVariable.kt

    fun test(foo: String.(String) -> Unit) {
        "A" <expr>foo</expr> "B"
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 71 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    			if len(call.Args) != 1 {
    				return true
    			}
    			expr := call.Args[0]
    			if pass.TypesInfo.Types[expr].Type == nil {
    				return true
    			}
    			t := pass.TypesInfo.Types[expr].Type.Underlying()
    			tSign, argOk := t.(*types.Signature)
    			// Argument should be a function
    			if !argOk {
    				pass.ReportRangef(expr, "argument to Fuzz must be a function")
    				return false
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/parenthesis.kt

    fun calculate() {
        val a = 1
        val b = 2
        val c = 3
        val result = a * <expr>(b + c)</expr> - a
        println(result)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 14:04:46 UTC 2024
    - 127 bytes
    - Viewed (0)
  5. 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)
  6. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/whenCondition.kt

    fun foo(a: Int): Int {
        val b: Int = 1
        return when (a + b) {
            <expr>0</expr> -> b
            1 -> -b
            else -> a - b
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 141 bytes
    - Viewed (0)
  7. analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/recursiveJavaFieldsReference.kt

    // FILE: JavaConst.java
    public interface JavaConst {
        public static final int x = KotlinConst.y;
    }
    
    // FILE: main.kt
    object KotlinConst {
        const val y = <expr>JavaConst.x</expr>;
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 08:19:41 UTC 2024
    - 186 bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/annotationInfixOperatorProperty.kt

    @file:Suppress("ANNOTATION_ARGUMENT_MUST_BE_CONST")
    package test
    
    annotation class Anno(val value: String)
    
    @Anno(value = "A" <expr>foo</expr> "B")
    class Foo
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 202 bytes
    - Viewed (0)
  9. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/conditionCheck.kt

    fun <T> Array<T>.check(f: (T) -> Boolean): Boolean = false
    
    fun test(words: Array<String>) {
        if (<expr>words.check { it.length == 5 }</expr>) {
            consume("OK")
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 207 bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/assignmentTarget.kt

    fun test() {
        buildFoo {
            <expr>value</expr> = produceString()
        }
    }
    
    fun buildFoo(builder: Foo.() -> Unit): Foo {
        val foo = Foo()
        foo.builder()
        return foo
    }
    
    class Foo {
        var value: String? = null
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 260 bytes
    - Viewed (0)
Back to top