Beispiel #1
0
 /// <summary>Initializes a new instance of the <see cref="DILocation"/> class.</summary>
 /// <param name="context">Context that owns this location</param>
 /// <param name="line">line number for the location</param>
 /// <param name="column">Column number for the location</param>
 /// <param name="scope">Containing scope for the location</param>
 /// <param name="inlinedAt">Scope where this scope is inlined at/into</param>
 public DILocation(Context context, uint line, uint column, DILocalScope scope, DILocation inlinedAt)
     : base(LLVMDILocation(context.ValidateNotNull(nameof(context)).ContextHandle
                           , line
                           , column
                           , scope.ValidateNotNull(nameof(scope)).MetadataHandle
                           , inlinedAt?.MetadataHandle ?? default
                           )
            )
 {
 }
Beispiel #2
0
 public DILocation(Context context, uint line, uint column, DILocalScope scope, DILocation inlinedAt)
     : base(NativeMethods.DILocation(context.VerifyArgNotNull(nameof(context)).ContextHandle
                                     , line
                                     , column
                                     , scope.VerifyArgNotNull(nameof(scope)).MetadataHandle
                                     , inlinedAt?.MetadataHandle ?? LLVMMetadataRef.Zero
                                     )
            )
 {
 }
Beispiel #3
0
 /// <summary>Initializes a new instance of the <see cref="DILocation"/> class.</summary>
 /// <param name="context">Context that owns this location</param>
 /// <param name="line">line number for the location</param>
 /// <param name="column">Column number for the location</param>
 /// <param name="scope">Containing scope for the location</param>
 public DILocation(Context context, uint line, uint column, DILocalScope scope)
     : this(context, line, column, scope, null)
 {
 }