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); }
public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray <TypeSymbolWithAnnotations> typeArguments) : base((ErrorTypeSymbol)constructedFrom.OriginalDefinition) { _constructedFrom = constructedFrom; _typeArguments = typeArguments; _map = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArguments); }
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); }
protected SubstitutedErrorTypeSymbol( ErrorTypeSymbol originalDefinition, TupleExtraData?tupleData = null ) : base(tupleData) { _originalDefinition = originalDefinition; }
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); }
public SubstitutedNestedErrorTypeSymbol( NamedTypeSymbol containingSymbol, ErrorTypeSymbol originalDefinition ) : base(originalDefinition) { _containingSymbol = containingSymbol; _map = containingSymbol.TypeSubstitution.WithAlphaRename( originalDefinition, this, out _typeParameters ); }
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); }
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; }