Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 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/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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

            file: KtFile,
            configuration: CompilerConfiguration,
            target: KtCompilerTarget,
            allowedErrorFilter: (KtDiagnostic) -> Boolean
        ): KtCompilationResult {
            val classBuilderFactory = when (target) {
                is KtCompilerTarget.Jvm -> target.classBuilderFactory
            }
    
            val syntaxErrors = SyntaxErrorReportingVisitor(analysisSession.useSiteSession) { it.asKtDiagnostic() }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 32.2K bytes
    - Viewed (1)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

            return DefaultExpressionInfo(defaultStatement, defaultConeType.toKtType())
        }
    
        private fun computeOrdinaryDefaultType(defaultStatement: KtExpression, firDefaultStatement: FirElement): ConeKotlinType? {
            when (firDefaultStatement) {
                !is FirExpression,
                is FirJump<*>,
                is FirThrowExpression,
                is FirUnitExpression,
                is FirErrorExpression -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeProvider.kt

        private fun flattenFirScope(firScope: FirScope): List<FirScope> = when (firScope) {
            is FirCompositeScope -> firScope.scopes.flatMap { flattenFirScope(it) }
            is FirNameAwareCompositeScope -> firScope.scopes.flatMap { flattenFirScope(it) }
            else -> listOf(firScope)
        }
    
        private fun convertToKtScope(firScope: FirScope): KtScope {
            return when (firScope) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                // treated as a property read.
                return resolveCall(parentBinaryExpression)
            }
    
            if (psi is KtCallableReferenceExpression) {
                return resolveCall(psi.callableReference)
            }
    
            when (unwrappedPsi) {
                is KtBinaryExpression -> {
    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. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

        ): KtConstantAnnotationValue? {
            val expression = psi as? KtElement
    
            @OptIn(UnresolvedExpressionTypeAccess::class)
            val type = coneTypeOrNull
            val constantValue = when {
                value == null -> KtConstantValue.KtNullConstantValue(expression)
                type == null -> KtConstantValueFactory.createConstantValue(value, psi as? KtElement)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top