C# Class CsDebugScript.CodeGen.UserTypes.GlobalsUserType

User type that represents static class for getting global variables located in Module.
Inheritance: UserType
Show file Open project: southpolenator/WinDbgCs Class Usage Examples

Public Methods

Method Description
GlobalsUserType ( Symbol symbol, XmlType xmlType, string nameSpace ) : System.Collections.Generic

Initializes a new instance of the GlobalsUserType class.

Protected Methods

Method Description
ExtractFields ( UserTypeFactory factory, UserTypeGenerationFlags generationFlags ) : IEnumerable

Extracts all fields from the user type.

GenerateConstructors ( UserTypeGenerationFlags generationFlags ) : IEnumerable

Generates the constructors.

GetBaseClassTypeTree ( TextWriter error, Symbol type, UserTypeFactory factory, int &baseClassOffset ) : TypeTree

Gets the type tree for the base class. If class has multi inheritance, it can return MultiClassInheritanceTypeTree or SingleClassInheritanceWithInterfacesTypeTree.

Method Details

ExtractFields() protected method

Extracts all fields from the user type.
protected ExtractFields ( UserTypeFactory factory, UserTypeGenerationFlags generationFlags ) : IEnumerable
factory UserTypeFactory The user type factory.
generationFlags UserTypeGenerationFlags The user type generation flags.
return IEnumerable

GenerateConstructors() protected method

Generates the constructors.
protected GenerateConstructors ( UserTypeGenerationFlags generationFlags ) : IEnumerable
generationFlags UserTypeGenerationFlags The user type generation flags.
return IEnumerable

GetBaseClassTypeTree() protected method

Gets the type tree for the base class. If class has multi inheritance, it can return MultiClassInheritanceTypeTree or SingleClassInheritanceWithInterfacesTypeTree.
protected GetBaseClassTypeTree ( TextWriter error, Symbol type, UserTypeFactory factory, int &baseClassOffset ) : TypeTree
error System.IO.TextWriter The error text writer.
type Symbol The type for which we are getting base class.
factory UserTypeFactory The user type factory.
baseClassOffset int The base class offset.
return CsDebugScript.CodeGen.TypeTrees.TypeTree

GlobalsUserType() public method

Initializes a new instance of the GlobalsUserType class.
public GlobalsUserType ( Symbol symbol, XmlType xmlType, string nameSpace ) : System.Collections.Generic
symbol Symbol The symbol we are generating this user type from.
xmlType XmlType The XML description of the type.
nameSpace string The namespace it belongs to.
return System.Collections.Generic