Method CreateArgument
CreateArgument(DIScope?, LazyEncodedString, DIFile?, uint, DIType?, bool, DebugInfoFlags, ushort)
Creates an argument for a function as a DILocalVariable
DILocalVariable CreateArgument(DIScope? scope, LazyEncodedString name, DIFile? file, uint line, DIType? type, bool alwaysPreserve, DebugInfoFlags debugFlags, ushort argNo)
Parameters
scopeDIScopeScope for the argument
nameLazyEncodedStringName of the argument
fileDIFileDIFile containing the function this argument is declared in
lineuintLine number fort his argument
typeDITypeDebug type for this argument
alwaysPreserveboolFlag to indicate if this argument is always preserved for debug view even if optimization would remove it
debugFlagsDebugInfoFlagsDebugInfoFlags for this argument
argNoushortOne based argument index on the method (e.g the first argument is 1 not 0 )
Returns
- DILocalVariable
DILocalVariable representing the function argument