mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
20 lines
616 B
C#
20 lines
616 B
C#
namespace Semmle.Extraction.CSharp
|
|
{
|
|
/// <summary>
|
|
/// A factory for creating cached entities.
|
|
/// </summary>
|
|
internal abstract class CachedEntityFactory<TInit, TEntity>
|
|
: Extraction.CachedEntityFactory<TInit, TEntity> where TEntity : CachedEntity
|
|
{
|
|
/// <summary>
|
|
/// Initializes the entity, but does not generate any trap code.
|
|
/// </summary>
|
|
public sealed override TEntity Create(Extraction.Context cx, TInit init)
|
|
{
|
|
return Create((Context)cx, init);
|
|
}
|
|
|
|
public abstract TEntity Create(Context cx, TInit init);
|
|
}
|
|
}
|