Either a SubstitutedNestedTypeSymbol or a ConstructedNamedTypeSymbol, which share in common that they have type parameters substituted.
Inheritance: NamedTypeSymbol
        internal void SetContainingType(SubstitutedNamedTypeSymbol type)
        {
            Debug.Assert(_lazyType == null);

            _lazyType       = null;
            _containingType = type;
        }
 internal SubstitutedNestedTypeSymbol(SubstitutedNamedTypeSymbol newContainer, NamedTypeSymbol originalDefinition)
     : base(
         newContainer: newContainer,
         map: newContainer.TypeSubstitution,
         originalDefinition: originalDefinition,
         // An Arity-0 member of an unbound type, e.g. A<>.B, is unbound.
         unbound: newContainer.IsUnboundGenericType && originalDefinition.Arity == 0)
 {
 }
Beispiel #3
0
 internal SubstitutedNestedTypeSymbol(SubstitutedNamedTypeSymbol newContainer, NamedTypeSymbol originalDefinition)
     : base(
         newContainer: newContainer,
         map: newContainer.TypeSubstitution,
         originalDefinition: originalDefinition,
         // An Arity-0 member of an unbound type, e.g. A<>.B, is unbound.
         unbound: newContainer.IsUnboundGenericType && originalDefinition.Arity == 0)
 {
 }
        private int _hashCode; // computed on demand

        internal SubstitutedMethodSymbol(SubstitutedNamedTypeSymbol containingSymbol, MethodSymbol originalDefinition)
            : this(containingSymbol, containingSymbol.TypeSubstitution, originalDefinition, constructedFrom : null)
        {
        }
 internal SubstitutedPropertySymbol(SubstitutedNamedTypeSymbol containingType, PropertySymbol originalDefinition)
 {
     _containingType = containingType;
     _originalDefinition = originalDefinition;
 }
 internal SubstitutedPropertySymbol(SubstitutedNamedTypeSymbol containingType, PropertySymbol originalDefinition)
 {
     _containingType     = containingType;
     _originalDefinition = originalDefinition;
 }
 internal void SetContainingType(SubstitutedNamedTypeSymbol type)
 {
     _containingType = type;
 }
        private int _hashCode; // computed on demand

        internal SubstitutedMethodSymbol(SubstitutedNamedTypeSymbol containingSymbol, MethodSymbol originalDefinition)
            : this(containingSymbol, containingSymbol.TypeSubstitution, originalDefinition, constructedFrom: null)
        {
        }
Beispiel #9
0
 internal void SetContainingType(SubstitutedNamedTypeSymbol type)
 {
     _containingType = type;
 }