mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
23 lines
536 B
C#
23 lines
536 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Semmle.Extraction.CIL
|
|
{
|
|
/// <summary>
|
|
/// A generic context which does not contain any type parameters.
|
|
/// </summary>
|
|
internal class EmptyContext : IGenericContext
|
|
{
|
|
public EmptyContext(Context cx)
|
|
{
|
|
Context = cx;
|
|
}
|
|
|
|
public Context Context { get; }
|
|
|
|
public IEnumerable<Entities.Type> TypeParameters { get { yield break; } }
|
|
|
|
public IEnumerable<Entities.Type> MethodParameters { get { yield break; } }
|
|
|
|
}
|
|
}
|