Method CreateArgument
CreateArgument(DIScope, String, DIFile, UInt32, DIType, Boolean, DebugInfoFlags, UInt16)
Creates an argument for a function as a DILocal
Declaration
public DILocalVariable CreateArgument(DIScope scope, string name, DIFile file, uint line, DIType type, bool alwaysPreserve, DebugInfoFlags debugFlags, ushort argNo)
public DILocalVariable CreateArgument(DIScope scope, string name, DIFile file, uint line, DIType type, bool alwaysPreserve, DebugInfoFlags debugFlags, ushort argNo)
Parameters
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 |
Debug |
debugFlags | Debug |
UInt16 | argNo | One based argument index on the method (e.g the first argument is 1 not 0 ) |
Returns
DILocal |
DILocal |