Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 191 for Unwrap (0.43 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/firUtils.kt

    internal fun PsiElement.unwrap(): PsiElement {
        return when (this) {
            is KtExpression -> this.unwrap()
            else -> this
        }
    }
    
    internal fun KtExpression.unwrap(): KtExpression {
        return when (this) {
            is KtLabeledExpression -> baseExpression?.unwrap()
            is KtAnnotatedExpression -> baseExpression?.unwrap()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/toolchain/switch.go

    // addTooNew adds any TooNew errors that can be found in err.
    func (s *Switcher) addTooNew(err error) {
    	switch err := err.(type) {
    	case interface{ Unwrap() []error }:
    		for _, e := range err.Unwrap() {
    			s.addTooNew(e)
    		}
    
    	case interface{ Unwrap() error }:
    		s.addTooNew(err.Unwrap())
    
    	case *gover.TooNewError:
    		if s.TooNew == nil ||
    			gover.Compare(err.GoVersion, s.TooNew.GoVersion) > 0 ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/99-minor/testing/fstest/63675.md

    [TestFS] now returns a structured error that can be unwrapped
    (via method `Unwrap() []error`). This allows inspecting errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 20:57:18 UTC 2024
    - 159 bytes
    - Viewed (0)
  4. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/BeanPropertyExtensions.kt

                    throw passThrough
                } catch (passThrough: GradleException) {
                    throw passThrough
                } catch (e: InvocationTargetException) {
                    // unwrap ITEs as they are not useful to users
                    throw GradleException("Could not load the value of $trace.", e.cause)
                } catch (e: Exception) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                    node.followingNodes
                        .filter { it !is StubNode }
                        .map { it.unwrap() }
                        .distinct()
                        .sortedBy { it.id }
                }.distinct()
    
            return exitPoints.size > 1
        }
    
        private fun CFGNode<*>.unwrap(): CFGNode<*> {
            var current = this
    
            while (current.isExitNode()) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 14:04:46 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

                // That is not exactly `expr`, which would be [KtLambdaExpression]. So, we need [unwrap] here.
                valueArg.getArgumentExpression()?.unwrap() == expr
            } ?: return null
            val callExpression =
                (valueArgument.parent as? KtValueArgumentList)?.parent as? KtCallElement
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java

            if (value == null) {
                return true;
            }
    
            final HibernateConstraintValidatorContext hibernateContext = context.unwrap(HibernateConstraintValidatorContext.class);
            hibernateContext.disableDefaultConstraintViolation();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/base/base.go

    	// add other context: only handling the wrapped errors would lose
    	// that context.
    	if err != nil && reflect.TypeOf(err).String() == "*errors.joinError" {
    		for _, e := range err.(interface{ Unwrap() []error }).Unwrap() {
    			Error(e)
    		}
    		return
    	}
    	Errorf("go: %v", err)
    }
    
    func Fatal(err error) {
    	Error(err)
    	Exit()
    }
    
    var exitStatus = 0
    var exitMu sync.Mutex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/signatures/KtVariableLikeSignature.kt

         *   action("") // this call
         * }
         * ```
         *
         * Unfortunately, [symbol] for the `action("")` call will be pointing to the `Function1<P1, R>.invoke(p1: P1): R`, because we
         * intentionally unwrap use-site substitution overrides. Because of this, `symbol.name` will yield `"p1"`, and not `"bar"`.
         *
         * To overcome this problem, [name] property is introduced: it allows to get the intended name of the parameter,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

            else -> null
        }
    }
    
    /**
     * This logic should be equivalent to
     * [org.jetbrains.kotlin.analysis.api.fir.KaSymbolByFirBuilder.unwrapSubstitutionOverrideIfNeeded]. But this method unwrap all fake
     * overrides that do not change the signature.
     */
    internal fun CallableDescriptor.unwrapFakeOverrideIfNeeded(): CallableDescriptor {
        val useSiteUnwrapped = unwrapUseSiteSubstitutionOverride()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top