Method CreateArgument
CreateArgument(DIScope, String, DIFile, UInt32, DIType, Boolean, DebugInfoFlags, UInt16)
Creates an argument for a function as a DILocalVariable
Declaration
public DILocalVariable CreateArgument(DIScope scope, string name, DIFile file, uint line, DIType type, bool alwaysPreserve, DebugInfoFlags debugFlags, ushort argNo)
Parameters
public DILocalVariable CreateArgument(DIScope scope, string name, DIFile file, uint line, DIType type, bool alwaysPreserve, DebugInfoFlags debugFlags, ushort argNo)
DIScope | scope | Scope for the argument |
String | name | Name of the argument |
DIFile | file | DIFile containing the function this argument is declared in |
UInt32 | line | Line number fort his argument |
DIType | type | Debug type for this argument |
Boolean | alwaysPreserve | Flag to indicate if this argument is always preserved for debug view even if optimization would remove it |
DebugInfoFlags | debugFlags | DebugInfoFlags for this argument |
UInt16 | argNo | One based argument index on the method (e.g the first argument is 1 not 0 ) |
Returns
DILocalVariable | DILocalVariable representing the function argument |