Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for IsPrimary (0.18 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/pointers/KtFirConstructorSymbolPointer.kt

            if (firConstructor.isPrimary != isPrimary) return null
            return firSymbolBuilder.functionLikeBuilder.buildConstructorSymbol(firConstructor.symbol)
        }
    
        override fun pointsToTheSameSymbolAs(other: KaSymbolPointer<KaSymbol>): Boolean = other === this ||
                other is KaFirConstructorSymbolPointer &&
                other.signature == signature &&
                other.isPrimary == isPrimary &&
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. pkg/test/framework/components/cluster/topology.go

    		return c.Name()
    	}
    	if c.IsPrimary() {
    		if c.IsConfig() {
    			prefix = "primary"
    		} else {
    			prefix = "externalistiod"
    		}
    	} else if c.IsRemote() {
    		if c.IsConfig() {
    			prefix = "config"
    		} else {
    			prefix = "remote"
    		}
    	}
    
    	return fmt.Sprintf("%s-%d", prefix, c.Index)
    }
    
    func (c Topology) IsPrimary() bool {
    	return c.Primary().Name() == c.Name()
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirConstructorSymbol.kt

        }
    
        override val containingClassId: ClassId?
            get() = withValidityAssertion { firSymbol.containingClassLookupTag()?.classId?.takeUnless { it.isLocal } }
    
        override val isPrimary: Boolean get() = withValidityAssertion { firSymbol.isPrimary }
        override val isActual: Boolean get() = withValidityAssertion { firSymbol.isActual }
        override val isExpect: Boolean get() = withValidityAssertion { firSymbol.isExpect }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. pkg/test/framework/components/cluster/cluster.go

    	// MaxKubeVersion returns true if the cluster is at most the version specified,
    	// false otherwise
    	MaxKubeVersion(minor uint) bool
    
    	// IsPrimary returns true if this is a primary cluster, containing an instance
    	// of the Istio control plane.
    	IsPrimary() bool
    
    	// IsConfig returns true if this is a config cluster, used as the source of
    	// Istio config for one or more control planes.
    	IsConfig() bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescConstructorSymbol.kt

        override val analysisContext: Fe10AnalysisContext
    ) : KaConstructorSymbol(), KaFe10DescMemberSymbol<ConstructorDescriptor> {
        override val isPrimary: Boolean
            get() = withValidityAssertion { descriptor.isPrimary }
    
        override val containingClassId: ClassId?
            get() = withValidityAssertion { descriptor.constructedClass.classId }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/KtClassifierBodyRenderer.kt

            printer: PrettyPrinter,
        ) {
            val members = declarationRenderer.bodyMemberScopeProvider.getMemberScope(analysisSession, symbol)
                .filter { it !is KaConstructorSymbol || !it.isPrimary }
                .let { declarationRenderer.bodyMemberScopeSorter.sortMembers(analysisSession, it, symbol) }
    
            val membersToPrint = members.mapNotNull { member ->
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/classifiers/KtNamedClassOrObjectSymbolRenderer.kt

                                declarationRenderer.bodyMemberScopeProvider.getMemberScope(analysisSession, symbol).filterIsInstance<KaConstructorSymbol>()
                                    .firstOrNull { it.isPrimary }
                            else null
    
                            declarationRenderer.nameRenderer.renderName(analysisSession, symbol, declarationRenderer, printer)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiConstructorSymbol.kt

        override val descriptor: ConstructorDescriptor? by cached {
            val bindingContext = analysisContext.analyze(psi, AnalysisMode.PARTIAL)
            bindingContext[BindingContext.CONSTRUCTOR, psi]
        }
    
        override val isPrimary: Boolean
            get() = withValidityAssertion { psi is KtPrimaryConstructor }
    
        override val containingClassId: ClassId?
            get() = withValidityAssertion { psi.getContainingClassOrObject().getClassId() }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/KtFunctionLikeSymbol.kt

    public abstract class KaConstructorSymbol : KaFunctionLikeSymbol(),
        KaPossibleMemberSymbol,
        KaPossibleMultiplatformSymbol,
        KaSymbolWithVisibility {
    
        public abstract val isPrimary: Boolean
    
        /**
         * The [ClassId] of the containing class, or `null` if the class is local.
         */
        public abstract val containingClassId: ClassId?
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/services/LLStandaloneFirElementByPsiElementChooser.kt

            if (fir is FirConstructor && psi is KtConstructor<*>) {
                if (psi is KtPrimaryConstructor && fir.isPrimary) return true // There can only be one primary constructor.
                if (psi is KtPrimaryConstructor || fir.isPrimary) return false
            }
    
            if (!modifiersMatch(psi, fir)) return false
            if (!receiverTypeMatches(psi, fir)) return false
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 15 11:34:07 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top