Example #1
0
 internal SubstitutedFieldSymbol(
     SubstitutedNamedTypeSymbol containingType,
     FieldSymbol substitutedFrom
     ) : base((FieldSymbol)substitutedFrom.OriginalDefinition)
 {
     _containingType = containingType;
 }
 internal SubstitutedPropertySymbol(
     SubstitutedNamedTypeSymbol containingType,
     PropertySymbol originalDefinition
     ) : base(originalDefinition)
 {
     _containingType = containingType;
 }
Example #3
0
 internal SubstitutedEventSymbol(
     SubstitutedNamedTypeSymbol containingType,
     EventSymbol originalDefinition
     ) : base(originalDefinition)
 {
     Debug.Assert(originalDefinition.IsDefinition);
     _containingType = containingType;
 }
 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)
 {
 }
 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)
 {
     this.containingType     = containingType;
     this.originalDefinition = originalDefinition;
 }
        private int _hashCode; // computed on demand

        internal SubstitutedMethodSymbol(SubstitutedNamedTypeSymbol containingSymbol, MethodSymbol originalDefinition)
            : this(containingSymbol, containingSymbol.TypeSubstitution, originalDefinition, constructedFrom : null)
        {
        }
 internal SubstitutedEventSymbol(SubstitutedNamedTypeSymbol containingType, EventSymbol originalDefinition)
 {
     _containingType = containingType;
     _originalDefinition = originalDefinition;
 }
Example #10
0
 internal SubstitutedFieldSymbol(SubstitutedNamedTypeSymbol containingType, FieldSymbol substitutedFrom)
 {
     _containingType     = containingType;
     _originalDefinition = substitutedFrom.OriginalDefinition as FieldSymbol;
 }
 internal SubstitutedPropertySymbol(SubstitutedNamedTypeSymbol containingType, PropertySymbol originalDefinition)
     : base(originalDefinition)
 {
     _containingType = containingType;
 }
 internal SubstitutedEventSymbol(SubstitutedNamedTypeSymbol containingType, EventSymbol originalDefinition)
 {
     _containingType     = containingType;
     _originalDefinition = originalDefinition;
 }
 internal SubstitutedFieldSymbol(SubstitutedNamedTypeSymbol containingType, FieldSymbol substitutedFrom)
 {
     _containingType = containingType;
     _originalDefinition = substitutedFrom.OriginalDefinition as FieldSymbol;
 }
Example #14
0
 internal SubstitutedEventSymbol(SubstitutedNamedTypeSymbol containingType, EventSymbol originalDefinition)
     : base(originalDefinition)
 {
     Debug.Assert(originalDefinition.IsDefinition);
     _containingType = containingType;
 }
Example #15
0
 internal SubstitutedFieldSymbol(SubstitutedNamedTypeSymbol containingType, FieldSymbol substitutedFrom)
     : base((FieldSymbol)substitutedFrom.OriginalDefinition)
 {
     _containingType = containingType;
 }
 internal SubstitutedPropertySymbol(SubstitutedNamedTypeSymbol containingType, PropertySymbol originalDefinition)
 {
     this.containingType = containingType;
     this.originalDefinition = originalDefinition;
 }