C# Class CsDebugScript.CodeGen.UserTypes.UserTypeFactory

Class representing user type factory. It is being used to find types.
Exibir arquivo Open project: southpolenator/WinDbgCs Class Usage Examples

Protected Properties

Property Type Description
typeTransformations XmlTypeTransformation[]

Public Methods

Method Description
UserTypeFactory ( UserTypeFactory factory ) : System

Initializes a new instance of the UserTypeFactory class.

UserTypeFactory ( XmlTypeTransformation transformations ) : System

Initializes a new instance of the UserTypeFactory class.

Private Methods

Method Description
AddDerivedClassToBaseClasses ( UserType userType ) : void

Adds the specified user type as derived class to all its base classes.

AddSymbol ( Symbol symbol, XmlType type, string nameSpace, UserTypeGenerationFlags generationFlags ) : UserType

Adds the symbol to user type factory and generates the user type.

AddSymbols ( IEnumerable symbols, XmlType type, string nameSpace, UserTypeGenerationFlags generationFlags ) : IEnumerable

Adds the symbols to user type factory and generates the user types.

ContainsSymbol ( Module module, string typeString ) : bool

Determines whether the factory contains the specified type.

FindTransformation ( Symbol type, UserType ownerUserType ) : UserTypeTransformation

Tries to match transformation for the specified type.

GetUserType ( Module module, string typeString, UserType &userType ) : bool

Look up for user type based on the specified module and type string.

GetUserType ( Symbol type, UserType &userType ) : bool

Look up for user type based on the specified symbol.

ProcessTypes ( IEnumerable userTypes, string>.Dictionary symbolNamespaces ) : IEnumerable

Post process the types: - If UserType has static members in more than one module, split it into multiple user types. - Find parent type/namespace.

Method Details

UserTypeFactory() public method

Initializes a new instance of the UserTypeFactory class.
public UserTypeFactory ( UserTypeFactory factory ) : System
factory UserTypeFactory The user type factory.
return System

UserTypeFactory() public method

Initializes a new instance of the UserTypeFactory class.
public UserTypeFactory ( XmlTypeTransformation transformations ) : System
transformations XmlTypeTransformation The transformations.
return System

Property Details

typeTransformations protected_oe property

The list of available type transformations
protected XmlTypeTransformation[] typeTransformations
return XmlTypeTransformation[]