Method CreateLocalVariable
CreateLocalVariable(DIScope, String, DIFile, UInt32, DIType, Boolean, DebugInfoFlags, UInt32)
Creates a DILocalVariable for a given scope
Declaration
public DILocalVariable CreateLocalVariable(DIScope scope, string name, DIFile file, uint line, DIType type, bool alwaysPreserve, DebugInfoFlags debugFlags, uint alignInBits = 0U)
Parameters
public DILocalVariable CreateLocalVariable(DIScope scope, string name, DIFile file, uint line, DIType type, bool alwaysPreserve, DebugInfoFlags debugFlags, uint alignInBits = 0U)
DIScope | scope | Scope the variable belongs to |
String | name | Name of the variable |
DIFile | file | File where the variable is declared |
UInt32 | line | Line where the variable is declared |
DIType | type | Type of the variable |
Boolean | alwaysPreserve | Flag to indicate if this variable's debug information should always be preserved |
DebugInfoFlags | debugFlags | Flags for the variable |
UInt32 | alignInBits | Variable alignment (in Bits) |
Returns
DILocalVariable | DILocalVariable |