C# Class Microsoft.CSharp.RuntimeBinder.Semantics.TypeManager

Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
ConcatenateTypeArrays ( TypeArray pTypeArray1, TypeArray pTypeArray2 ) : TypeArray
CreateArrayOfUnitTypes ( int cSize ) : TypeArray
GetAggregate ( AggregateSymbol agg, AggregateType atsOuter, TypeArray typeArgs ) : AggregateType
GetAggregate ( AggregateSymbol agg, TypeArray typeArgsAll ) : AggregateType
GetAnonMethType ( ) : BoundLambdaType
GetArgListType ( ) : ArgumentListType
GetArray ( CType elementType, int args ) : Microsoft.CSharp.RuntimeBinder.Semantics.ArrayType
GetErrorSym ( ) : Microsoft.CSharp.RuntimeBinder.Semantics.ErrorType
GetErrorType ( CType pParentType, Microsoft.CSharp.RuntimeBinder.Semantics.AssemblyQualifiedNamespaceSymbol pParentNS, Name nameText, TypeArray typeArgs ) : Microsoft.CSharp.RuntimeBinder.Semantics.ErrorType
GetMethGrpType ( ) : MethodGroupType
GetNubFromNullable ( AggregateType ats ) : NullableType
GetNullType ( ) : NullType
GetNullable ( ) : AggregateSymbol
GetNullable ( CType pUnderlyingType ) : NullableType
GetOptPredefAgg ( PredefinedType pt ) : AggregateSymbol
GetParameterModifier ( CType paramType, bool isOut ) : Microsoft.CSharp.RuntimeBinder.Semantics.ParameterModifierType
GetPointer ( CType baseType ) : Microsoft.CSharp.RuntimeBinder.Semantics.PointerType
GetReqPredefAgg ( PredefinedType pt ) : AggregateSymbol
GetStdClsTypeVar ( int iv ) : Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
GetStdMethTyVarArray ( int cTyVars ) : TypeArray
GetStdMethTypeVar ( int iv ) : Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
GetTypeParameter ( Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterSymbol pSymbol ) : Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
GetUnitType ( ) : OpenTypePlaceholderType
GetVoid ( ) : VoidType
InitTypeFactory ( SymbolTable table ) : void
ParametersContainTyVar ( TypeArray @params, Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType typeFind ) : bool
ReportMissingPredefTypeError ( ErrorHandling errorContext, PredefinedType pt ) : void
SubstEqualTypeArrays ( TypeArray taDst, TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : bool
SubstEqualTypes ( CType typeDst, CType typeSrc, CType typeCls ) : bool
SubstEqualTypes ( CType typeDst, CType typeSrc, CType typeCls, TypeArray typeArgsMeth ) : bool
SubstEqualTypes ( CType typeDst, CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : bool
SubstEqualTypesCore ( CType typeDst, CType typeSrc, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : bool
SubstType ( CType typeSrc, AggregateType atsCls ) : CType
SubstType ( CType typeSrc, AggregateType atsCls, TypeArray typeArgsMeth ) : CType
SubstType ( CType typeSrc, CType typeCls, TypeArray typeArgsMeth ) : CType
SubstType ( CType typeSrc, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : CType
SubstType ( CType typeSrc, TypeArray typeArgsCls ) : CType
SubstType ( CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth ) : CType
SubstType ( CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : CType
SubstTypeArray ( TypeArray taSrc, AggregateType atsCls ) : TypeArray
SubstTypeArray ( TypeArray taSrc, AggregateType atsCls, TypeArray typeArgsMeth ) : TypeArray
SubstTypeArray ( TypeArray taSrc, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : TypeArray
SubstTypeArray ( TypeArray taSrc, TypeArray typeArgsCls ) : TypeArray
SubstTypeArray ( TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth ) : TypeArray
SubstTypeArray ( TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : TypeArray
TypeContainsAnonymousTypes ( CType type ) : bool
TypeContainsTyVars ( CType type, TypeArray typeVars ) : bool
TypeContainsType ( CType type, CType typeFind ) : bool
TypeManager ( ) : System

Private Methods

Method Description
GetBestAccessibleType ( Microsoft.CSharp.RuntimeBinder.Semantics.CSemanticChecker semanticChecker, BindingContext bindingContext, CType typeSrc, CType &typeDst ) : bool
Init ( BSYMMGR bsymmgr, PredefinedTypes predefTypes ) : void
InitType ( CType at ) : void
InternalsVisibleTo ( Assembly assemblyThatDefinesAttribute, Assembly assemblyToCheck ) : bool
SubstTypeCore ( CType type, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : CType
TryArrayVarianceAdjustmentToGetAccessibleType ( Microsoft.CSharp.RuntimeBinder.Semantics.CSemanticChecker semanticChecker, BindingContext bindingContext, Microsoft.CSharp.RuntimeBinder.Semantics.ArrayType typeSrc, CType &typeDst ) : bool
TryVarianceAdjustmentToGetAccessibleType ( Microsoft.CSharp.RuntimeBinder.Semantics.CSemanticChecker semanticChecker, BindingContext bindingContext, AggregateType typeSrc, CType &typeDst ) : bool

Method Details

ConcatenateTypeArrays() public method

public ConcatenateTypeArrays ( TypeArray pTypeArray1, TypeArray pTypeArray2 ) : TypeArray
pTypeArray1 TypeArray
pTypeArray2 TypeArray
return TypeArray

CreateArrayOfUnitTypes() public method

public CreateArrayOfUnitTypes ( int cSize ) : TypeArray
cSize int
return TypeArray

GetAggregate() public method

public GetAggregate ( AggregateSymbol agg, AggregateType atsOuter, TypeArray typeArgs ) : AggregateType
agg AggregateSymbol
atsOuter AggregateType
typeArgs TypeArray
return AggregateType

GetAggregate() public method

public GetAggregate ( AggregateSymbol agg, TypeArray typeArgsAll ) : AggregateType
agg AggregateSymbol
typeArgsAll TypeArray
return AggregateType

GetAnonMethType() public method

public GetAnonMethType ( ) : BoundLambdaType
return BoundLambdaType

GetArgListType() public method

public GetArgListType ( ) : ArgumentListType
return ArgumentListType

GetArray() public method

public GetArray ( CType elementType, int args ) : Microsoft.CSharp.RuntimeBinder.Semantics.ArrayType
elementType CType
args int
return Microsoft.CSharp.RuntimeBinder.Semantics.ArrayType

GetErrorSym() public method

public GetErrorSym ( ) : Microsoft.CSharp.RuntimeBinder.Semantics.ErrorType
return Microsoft.CSharp.RuntimeBinder.Semantics.ErrorType

GetErrorType() public method

public GetErrorType ( CType pParentType, Microsoft.CSharp.RuntimeBinder.Semantics.AssemblyQualifiedNamespaceSymbol pParentNS, Name nameText, TypeArray typeArgs ) : Microsoft.CSharp.RuntimeBinder.Semantics.ErrorType
pParentType CType
pParentNS Microsoft.CSharp.RuntimeBinder.Semantics.AssemblyQualifiedNamespaceSymbol
nameText Microsoft.CSharp.RuntimeBinder.Syntax.Name
typeArgs TypeArray
return Microsoft.CSharp.RuntimeBinder.Semantics.ErrorType

GetMethGrpType() public method

public GetMethGrpType ( ) : MethodGroupType
return MethodGroupType

GetNubFromNullable() public method

public GetNubFromNullable ( AggregateType ats ) : NullableType
ats AggregateType
return NullableType

GetNullType() public method

public GetNullType ( ) : NullType
return NullType

GetNullable() public method

public GetNullable ( ) : AggregateSymbol
return AggregateSymbol

GetNullable() public method

public GetNullable ( CType pUnderlyingType ) : NullableType
pUnderlyingType CType
return NullableType

GetOptPredefAgg() public method

public GetOptPredefAgg ( PredefinedType pt ) : AggregateSymbol
pt PredefinedType
return AggregateSymbol

GetParameterModifier() public method

public GetParameterModifier ( CType paramType, bool isOut ) : Microsoft.CSharp.RuntimeBinder.Semantics.ParameterModifierType
paramType CType
isOut bool
return Microsoft.CSharp.RuntimeBinder.Semantics.ParameterModifierType

GetPointer() public method

public GetPointer ( CType baseType ) : Microsoft.CSharp.RuntimeBinder.Semantics.PointerType
baseType CType
return Microsoft.CSharp.RuntimeBinder.Semantics.PointerType

GetReqPredefAgg() public method

public GetReqPredefAgg ( PredefinedType pt ) : AggregateSymbol
pt PredefinedType
return AggregateSymbol

GetStdClsTypeVar() public method

public GetStdClsTypeVar ( int iv ) : Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
iv int
return Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType

GetStdMethTyVarArray() public method

public GetStdMethTyVarArray ( int cTyVars ) : TypeArray
cTyVars int
return TypeArray

GetStdMethTypeVar() public method

public GetStdMethTypeVar ( int iv ) : Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
iv int
return Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType

GetTypeParameter() public method

public GetTypeParameter ( Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterSymbol pSymbol ) : Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
pSymbol Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterSymbol
return Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType

GetUnitType() public method

public GetUnitType ( ) : OpenTypePlaceholderType
return OpenTypePlaceholderType

GetVoid() public method

public GetVoid ( ) : VoidType
return VoidType

InitTypeFactory() public method

public InitTypeFactory ( SymbolTable table ) : void
table Microsoft.CSharp.RuntimeBinder.SymbolTable
return void

ParametersContainTyVar() public static method

public static ParametersContainTyVar ( TypeArray @params, Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType typeFind ) : bool
@params TypeArray
typeFind Microsoft.CSharp.RuntimeBinder.Semantics.TypeParameterType
return bool

ReportMissingPredefTypeError() public method

public ReportMissingPredefTypeError ( ErrorHandling errorContext, PredefinedType pt ) : void
errorContext Microsoft.CSharp.RuntimeBinder.Errors.ErrorHandling
pt PredefinedType
return void

SubstEqualTypeArrays() public method

public SubstEqualTypeArrays ( TypeArray taDst, TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : bool
taDst TypeArray
taSrc TypeArray
typeArgsCls TypeArray
typeArgsMeth TypeArray
grfst SubstTypeFlags
return bool

SubstEqualTypes() public method

public SubstEqualTypes ( CType typeDst, CType typeSrc, CType typeCls ) : bool
typeDst CType
typeSrc CType
typeCls CType
return bool

SubstEqualTypes() public method

public SubstEqualTypes ( CType typeDst, CType typeSrc, CType typeCls, TypeArray typeArgsMeth ) : bool
typeDst CType
typeSrc CType
typeCls CType
typeArgsMeth TypeArray
return bool

SubstEqualTypes() public method

public SubstEqualTypes ( CType typeDst, CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : bool
typeDst CType
typeSrc CType
typeArgsCls TypeArray
typeArgsMeth TypeArray
grfst SubstTypeFlags
return bool

SubstEqualTypesCore() public method

public SubstEqualTypesCore ( CType typeDst, CType typeSrc, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : bool
typeDst CType
typeSrc CType
pctx Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext
return bool

SubstType() public method

public SubstType ( CType typeSrc, AggregateType atsCls ) : CType
typeSrc CType
atsCls AggregateType
return CType

SubstType() public method

public SubstType ( CType typeSrc, AggregateType atsCls, TypeArray typeArgsMeth ) : CType
typeSrc CType
atsCls AggregateType
typeArgsMeth TypeArray
return CType

SubstType() public method

public SubstType ( CType typeSrc, CType typeCls, TypeArray typeArgsMeth ) : CType
typeSrc CType
typeCls CType
typeArgsMeth TypeArray
return CType

SubstType() public method

public SubstType ( CType typeSrc, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : CType
typeSrc CType
pctx Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext
return CType

SubstType() public method

public SubstType ( CType typeSrc, TypeArray typeArgsCls ) : CType
typeSrc CType
typeArgsCls TypeArray
return CType

SubstType() public method

public SubstType ( CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth ) : CType
typeSrc CType
typeArgsCls TypeArray
typeArgsMeth TypeArray
return CType

SubstType() public method

public SubstType ( CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : CType
typeSrc CType
typeArgsCls TypeArray
typeArgsMeth TypeArray
grfst SubstTypeFlags
return CType

SubstTypeArray() public method

public SubstTypeArray ( TypeArray taSrc, AggregateType atsCls ) : TypeArray
taSrc TypeArray
atsCls AggregateType
return TypeArray

SubstTypeArray() public method

public SubstTypeArray ( TypeArray taSrc, AggregateType atsCls, TypeArray typeArgsMeth ) : TypeArray
taSrc TypeArray
atsCls AggregateType
typeArgsMeth TypeArray
return TypeArray

SubstTypeArray() public method

public SubstTypeArray ( TypeArray taSrc, Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext pctx ) : TypeArray
taSrc TypeArray
pctx Microsoft.CSharp.RuntimeBinder.Semantics.SubstContext
return TypeArray

SubstTypeArray() public method

public SubstTypeArray ( TypeArray taSrc, TypeArray typeArgsCls ) : TypeArray
taSrc TypeArray
typeArgsCls TypeArray
return TypeArray

SubstTypeArray() public method

public SubstTypeArray ( TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth ) : TypeArray
taSrc TypeArray
typeArgsCls TypeArray
typeArgsMeth TypeArray
return TypeArray

SubstTypeArray() public method

public SubstTypeArray ( TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, SubstTypeFlags grfst ) : TypeArray
taSrc TypeArray
typeArgsCls TypeArray
typeArgsMeth TypeArray
grfst SubstTypeFlags
return TypeArray

TypeContainsAnonymousTypes() public static method

public static TypeContainsAnonymousTypes ( CType type ) : bool
type CType
return bool

TypeContainsTyVars() public static method

public static TypeContainsTyVars ( CType type, TypeArray typeVars ) : bool
type CType
typeVars TypeArray
return bool

TypeContainsType() public static method

public static TypeContainsType ( CType type, CType typeFind ) : bool
type CType
typeFind CType
return bool

TypeManager() public method

public TypeManager ( ) : System
return System