mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
25 lines
767 B
C#
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);
|
|
}
|
|
}
|