Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for smartcast (0.2 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SmartCastProvider.kt

            val smartCasts = bindingContext[BindingContext.IMPLICIT_RECEIVER_SMARTCAST, expression] ?: return emptyList()
            val call = bindingContext[BindingContext.CALL, expression] ?: return emptyList()
            val resolvedCall = bindingContext[BindingContext.RESOLVED_CALL, call] ?: return emptyList()
            return listOfNotNull(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Aug 15 21:46:11 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

            val bindingContext = analysisContext.analyze(expression)
    
            val smartCasts = bindingContext[BindingContext.SMARTCAST, expression]
    
            if (smartCasts is MultipleSmartCasts) {
                if (smartCasts.map.values.all { !it.isMarkedNullable }) {
                    return true
                }
            }
    
            val smartCastType = smartCasts?.defaultType
            if (smartCastType != null && !smartCastType.isMarkedNullable) {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Tue Oct 24 20:59:56 GMT 2023
    - 15.5K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/smartCastProvider/Fe10IdeNormalAnalysisSourceModuleHLSmartCastInfoTestGenerated.java

      }
    
      @Test
      @TestMetadata("smartcast_stable.kt")
      public void testSmartcast_stable() {
        runTest("analysis/analysis-api/testData/components/smartCastProvider/smartCastInfo/smartcast_stable.kt");
      }
    
      @Test
      @TestMetadata("smartcast_unstable.kt")
      public void testSmartcast_unstable() {
        runTest("analysis/analysis-api/testData/components/smartCastProvider/smartCastInfo/smartcast_unstable.kt");
      }
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 27 20:30:06 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/expressionTypeProvider/Fe10IdeNormalAnalysisSourceModuleHLExpressionTypeTestGenerated.java

      }
    
      @Test
      @TestMetadata("smartcast_multi.kt")
      public void testSmartcast_multi() {
        runTest("analysis/analysis-api/testData/components/expressionTypeProvider/expressionType/smartcast_multi.kt");
      }
    
      @Test
      @TestMetadata("smartcast_unused.kt")
      public void testSmartcast_unused() {
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:25:50 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/typeInfoProvider/Fe10IdeNormalAnalysisSourceModuleIsDenotableTestGenerated.java

        runTest("analysis/analysis-api/testData/components/typeInfoProvider/isDenotable/simpleTypes.kt");
      }
    
      @Test
      @TestMetadata("smartcast.kt")
      public void testSmartcast() {
        runTest("analysis/analysis-api/testData/components/typeInfoProvider/isDenotable/smartcast.kt");
      }
    
      @Test
      @TestMetadata("typeParameter.kt")
      public void testTypeParameter() {
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 27 20:30:06 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. .idea/dictionaries/valentin.xml

          <w>precheck</w>
          <w>prioritizer</w>
          <w>processings</w>
          <w>rbrace</w>
          <w>rbracket</w>
          <w>renderers</w>
          <w>rparenth</w>
          <w>selectioner</w>
          <w>smartcast</w>
          <w>summand</w>
          <w>unpluralize</w>
          <w>weighers</w>
        </words>
      </dictionary>
    XML
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Tue Sep 13 14:46:16 GMT 2016
    - 605 bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        Integer[] starting = Arrays.copyOf(array1, array1.length);
        Integer[] array2 = Arrays.copyOf(array1, array1.length);
        // TODO b/283448200 - Remove temporary variable when Kotlin smartcast issue is resolved.
        Integer[] array1Tmp = array1;
        Object[] reference = list.toArray(array1Tmp);
    
        Object[] target = ObjectArrays.toArrayImpl(list, array2);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        Integer[] starting = Arrays.copyOf(array1, array1.length);
        Integer[] array2 = Arrays.copyOf(array1, array1.length);
        // TODO b/283448200 - Remove temporary variable when Kotlin smartcast issue is resolved.
        Integer[] array1Tmp = array1;
        Object[] reference = list.toArray(array1Tmp);
    
        Object[] target = ObjectArrays.toArrayImpl(list, array2);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                    is KtExplicitReceiverValue -> {
                        smartCastTypeToUse = context[BindingContext.SMARTCAST, result.expression]?.type(resolvedCall.call)
                    }
                    is KtImplicitReceiverValue -> {
                        smartCastTypeToUse =
                            context[BindingContext.IMPLICIT_RECEIVER_SMARTCAST, resolvedCall.call.calleeExpression]?.receiverTypes?.get(this)
                    }
                    else -> {}
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  10. ChangeLog.md

    - [`KT-30756`](https://youtrack.jetbrains.com/issue/KT-30756) No smartcast if elvis operator as a smartcast source in while or do-while is used as the last statement
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Dec 21 17:48:12 GMT 2023
    - 268.7K bytes
    - Viewed (1)
Back to top