using System.Management.Automation.Language; using Semmle.Extraction.Entities; namespace Semmle.Extraction.PowerShell.Entities { internal abstract class CachedEntity : Extraction.CachedEntity where T : notnull { public PowerShellContext PowerShellContext => (PowerShellContext)base.Context; /// /// Call PowerShellContext.CreateLocation on the ReportingLocation and return result /// internal Location TrapSuitableLocation => PowerShellContext.CreateLocation(ReportingLocation); protected CachedEntity(PowerShellContext powerShellContext, T symbol) : base(powerShellContext, symbol) { } } }