Esempio n. 1
0
 public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray <TypeWithModifiers> typeArguments) :
     base((ErrorTypeSymbol)constructedFrom.OriginalDefinition)
 {
     _constructedFrom = constructedFrom;
     _typeArguments   = typeArguments.ToTypes(out _hasTypeArgumentsCustomModifiers);
     _map             = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArguments);
 }
Esempio n. 2
0
 public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray <TypeSymbolWithAnnotations> typeArguments) :
     base((ErrorTypeSymbol)constructedFrom.OriginalDefinition)
 {
     _constructedFrom = constructedFrom;
     _typeArguments   = typeArguments;
     _map             = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArguments);
 }
Esempio n. 3
0
 public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray <TypeWithAnnotations> typeArgumentsWithAnnotations, TupleExtraData?tupleData = null) :
     base((ErrorTypeSymbol)constructedFrom.OriginalDefinition, tupleData)
 {
     _constructedFrom = constructedFrom;
     _typeArgumentsWithAnnotations = typeArgumentsWithAnnotations;
     _map = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArgumentsWithAnnotations);
 }
Esempio n. 4
0
 protected SubstitutedErrorTypeSymbol(
     ErrorTypeSymbol originalDefinition,
     TupleExtraData?tupleData = null
     ) : base(tupleData)
 {
     _originalDefinition = originalDefinition;
 }
Esempio n. 5
0
 public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray <TypeSymbol> typeArguments) :
     base((ErrorTypeSymbol)constructedFrom.OriginalDefinition)
 {
     this.constructedFrom = constructedFrom;
     this.typeArguments   = typeArguments;
     this.map             = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArguments);
 }
Esempio n. 6
0
 public SubstitutedNestedErrorTypeSymbol(
     NamedTypeSymbol containingSymbol,
     ErrorTypeSymbol originalDefinition
     ) : base(originalDefinition)
 {
     _containingSymbol = containingSymbol;
     _map = containingSymbol.TypeSubstitution.WithAlphaRename(
         originalDefinition,
         this,
         out _typeParameters
         );
 }
Esempio n. 7
0
        public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray <TypeWithModifiers> typeArguments) :
            base((ErrorTypeSymbol)constructedFrom.OriginalDefinition)
        {
            _constructedFrom = constructedFrom;
            bool hasTypeArgumentsCustomModifiers = false;

            _typeArguments = typeArguments.SelectAsArray(a =>
            {
                if (!a.CustomModifiers.IsDefaultOrEmpty)
                {
                    hasTypeArgumentsCustomModifiers = true;
                }

                return(a.Type);
            });

            _hasTypeArgumentsCustomModifiers = hasTypeArgumentsCustomModifiers;
            _map = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArguments);
        }
Esempio n. 8
0
 protected SubstitutedErrorTypeSymbol(ErrorTypeSymbol originalDefinition)
 {
     _originalDefinition = originalDefinition;
 }
 public ErrorTypeParameterSymbol(ErrorTypeSymbol container, string name, int ordinal)
 {
     _container = container;
     _name      = name;
     _ordinal   = ordinal;
 }
 public ErrorTypeParameterSymbol(ErrorTypeSymbol container, string name, int ordinal)
 {
     this.container = container;
     this.name      = name;
     this.ordinal   = ordinal;
 }