C# Class Pchp.CodeAnalysis.Symbols.AbstractTypeMap

Abstract base class for mutable and immutable type maps.
Mostra file Open project: iolevel/peachpie Class Usage Examples

Protected Methods

Method Description
SubstituteDynamicType ( ) : TypeSymbol
SubstituteTypeParameter ( TypeParameterSymbol typeParameter ) : TypeWithModifiers

Private Methods

Method Description
IsPossiblyByRefTypeParameter ( TypeSymbol type ) : bool
SubstituteArrayType ( ArrayTypeSymbol t ) : ArrayTypeSymbol
SubstituteCustomModifiers ( ImmutableArray customModifiers ) : ImmutableArray
SubstituteCustomModifiers ( TypeSymbol type, ImmutableArray customModifiers ) : ImmutableArray
SubstituteMemberType ( NamedTypeSymbol previous ) : NamedTypeSymbol

Substitute for a type declaration. May use alpha renaming if the container is substituted.

SubstituteNamedType ( NamedTypeSymbol previous ) : NamedTypeSymbol

SubstType, but for NamedTypeSymbols only. This is used for concrete types, so no alpha substitution appears in the result.

SubstituteNamedTypes ( ImmutableArray original ) : ImmutableArray

Like SubstTypes, but for NamedTypeSymbols.

SubstituteType ( TypeSymbol previous ) : TypeWithModifiers

Perform the substitution on the given type. Each occurrence of the type parameter is replaced with its corresponding type argument from the map.

SubstituteTypeParameters ( ImmutableArray original ) : ImmutableArray
SubstituteTypes ( ImmutableArray original ) : ImmutableArray
SubstituteTypesDistinctWithoutModifiers ( ImmutableArray original, ArrayBuilder result ) : void

Substitute types, and return the results without duplicates, preserving the original order.

SubstituteTypesWithoutModifiers ( ImmutableArray original ) : ImmutableArray

Method Details

SubstituteDynamicType() protected method

protected SubstituteDynamicType ( ) : TypeSymbol
return TypeSymbol

SubstituteTypeParameter() protected method

protected SubstituteTypeParameter ( TypeParameterSymbol typeParameter ) : TypeWithModifiers
typeParameter TypeParameterSymbol
return TypeWithModifiers