Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Chen (0.17 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

    import org.jetbrains.kotlin.types.error.ErrorUtils
    
    internal val MemberDescriptor.ktSymbolKind: KtSymbolKind
        get() {
            return when (this) {
                is PropertyAccessorDescriptor -> KtSymbolKind.ACCESSOR
                is SamConstructorDescriptor -> KtSymbolKind.SAM_CONSTRUCTOR
                else -> when (containingDeclaration) {
                    is PackageFragmentDescriptor -> KtSymbolKind.TOP_LEVEL
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         *
         * To properly resolve qualifier parts in the middle,
         * we need to resolve the whole qualifier to understand which parts of the qualifier are package or class qualifiers.
         * And then we will be able to resolve the qualifier selected by the user to the proper class, package or callable.
         *
         * It's possible that the whole qualifier is invalid, in this case we still want to resolve our [selectedFqName].
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10DebugTypeRenderer.kt

                renderType(type, printer)
            }
        }
    
        private fun Fe10AnalysisContext.renderType(type: KotlinType, printer: PrettyPrinter) {
            renderTypeAnnotationsDebug(type, printer)
            when (val unwrappedType = type.unwrap()) {
                is DynamicType -> printer.append("dynamic")
                is FlexibleType -> renderFlexibleType(unwrappedType, printer)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

                        ?.setPreserveSourceElement()
                        ?.build() as? D ?: it
                }
            }
    
    
            private fun DeclarationDescriptor.isDeclaredInOwner() = when (this) {
                is CallableDescriptor -> dispatchReceiverParameter?.containingDeclaration == owner
                else -> containingDeclaration == owner
            }
        }
    
        override fun getEmptyScope(): KtScope {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            forQualifiedType: Boolean
        ): FqName {
            val qualified = when {
                forQualifiedType -> expression.parent?.takeIf { it is KtUserType && it.referenceExpression === expression }
                else -> expression.getQualifiedExpressionForSelector()
            }
            return when (qualified) {
                null -> FqName(expression.getReferencedName())
                else -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/diagnosticProvider/Fe10IdeNormalAnalysisSourceModuleCollectDiagnosticsTestGenerated.java

      @TestMetadata("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/when")
      @TestDataPath("$PROJECT_ROOT")
      public class When {
        @Test
        public void testAllFilesPresentInWhen() {
          KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/when"), Pattern.compile("^(.+)\\.kt$"), null, true);
        }
    
        @Test
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 06 16:13:09 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

                var boundTypeArgument: BoundTypeArgument = when {
                    typeProjection.isStarProjection -> return@forEachIndexed
                    typeProjection.projectionKind == Variance.INVARIANT -> {
                        when (typeParameter.variance) {
                            Variance.IN_VARIANCE -> BoundTypeArgument(typeProjection.type, Variance.IN_VARIANCE)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Jan 29 09:37:59 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

                return null
            }
    
            val bindingContext = analysisContext.analyze(unwrapped, AnalysisMode.PARTIAL)
            val smartCastType = when (val smartCastType = bindingContext[BindingContext.SMARTCAST, expression]) {
                is SingleSmartCast -> smartCastType.type
                is MultipleSmartCasts -> intersectWrappedTypes(smartCastType.map.values)
    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)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

            }
        }
    
        inner class TypeBuilder {
            fun buildKtType(coneType: ConeKotlinType): KtType {
                return when (coneType) {
                    is ConeClassLikeTypeImpl -> {
                        when {
                            coneType.lookupTag.toSymbol(rootSession) == null -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolContainingDeclarationProvider.kt

                    // getSymbol(ClassId) returns a symbol from the original file, so here we avoid using it
                    return getContainingDeclarationByPsi(symbol)
                }
            }
    
            when (symbol) {
                is KtLocalVariableSymbol,
                is KtAnonymousFunctionSymbol,
                is KtAnonymousObjectSymbol,
                is KtDestructuringDeclarationSymbol -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 13.5K bytes
    - Viewed (0)
Back to top