Files
codeql/powershell/extractor/Semmle.Extraction.PowerShell/Entities/Base/IExtractionProduct.cs
2024-08-14 18:11:02 +01:00

25 lines
767 B
C#

namespace Semmle.Extraction.PowerShell.Entities
{
/// <summary>
/// Something that is extracted from an entity.
/// </summary>
///
/// <remarks>
/// The extraction algorithm proceeds as follows:
/// - Construct entity
/// - Call Extract()
/// - IExtractedEntity check if already extracted
/// - Enumerate Contents to produce more extraction products
/// - Extract these until there is nothing left to extract
/// </remarks>
internal interface IExtractionProduct
{
/// <summary>
/// Perform further extraction/population of this item as necessary.
/// </summary>
///
/// <param name="cx">The extraction context.</param>
void Extract(PowerShellContext cx);
}
}