mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Fix container type extraction of tuple members
This commit is contained in:
@@ -16,7 +16,11 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
{
|
||||
}
|
||||
|
||||
public virtual Type? ContainingType => Symbol.ContainingType is not null ? Type.Create(Context, Symbol.ContainingType) : null;
|
||||
public virtual Type? ContainingType => Symbol.ContainingType is not null
|
||||
? Symbol.ContainingType.IsTupleType
|
||||
? NamedType.CreateNamedTypeFromTupleType(Context, Symbol.ContainingType)
|
||||
: Type.Create(Context, Symbol.ContainingType)
|
||||
: null;
|
||||
|
||||
public void PopulateModifiers(TextWriter trapFile)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user