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
scopeDIScopeScope the variable belongs to
nameLazyEncodedStringName of the variable
fileDIFileFile where the variable is declared
lineuintLine where the variable is declared
typeDITypeType of the variable
alwaysPreserveboolFlag to indicate if this variable's debug information should always be preserved
debugFlagsDebugInfoFlagsFlags for the variable
alignInBitsuintVariable alignment (in Bits)