Method CreateLocalVariable
CreateLocalVariable(DIScope?, LazyEncodedString, DIFile?, uint, DIType?, bool, DebugInfoFlags, uint)
Creates a DILocalVariable for a given scope
public DILocalVariable CreateLocalVariable(DIScope? scope, LazyEncodedString name, DIFile? file, uint line, DIType? type, bool alwaysPreserve = false, DebugInfoFlags debugFlags = DebugInfoFlags.None, uint alignInBits = 0)
Parameters
scope
DIScopeScope the variable belongs to
name
LazyEncodedStringName of the variable
file
DIFileFile where the variable is declared
line
uintLine where the variable is declared
type
DITypeType of the variable
alwaysPreserve
boolFlag to indicate if this variable's debug information should always be preserved
debugFlags
DebugInfoFlagsFlags for the variable
alignInBits
uintVariable alignment (in Bits)