NDepend.API Documentation
AllDebt Method
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqIssuesSet Class : AllDebt Method
The code element.
Gets the summed debt of all issues relative to codeElement, and relative to all its children code elements, defined by codeElement.NDepend.CodeModel.ICodeElementParent.RecursiveChildren, if codeElement is a NDepend.CodeModel.ICodeElementParent.
Syntax
[Extension()]
public static Debt AllDebt( 
   ICodeElement codeElement
)

Parameters

codeElement
The code element.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.Issue.IIssuesSet.AllDebtIn(ICodeElement) must be called instead.
Remarks
This property getter has a constant time complexity.
If codeElement is a NDepend.CodeModel.IMethod or a NDepend.CodeModel.IField, it is not a NDepend.CodeModel.ICodeElementParent and this method is equivalent to this.Debt(ICodeElement).
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsCQLinqIssuesSet Class
ExtensionMethodsCQLinqIssuesSet Members