mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C#: Consider 'record' a type modifier in the extractor (it can be applied to both class and struct).
This commit is contained in:
@@ -111,6 +111,9 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
if (nt is null)
|
||||
throw new InternalError(symbol, "Symbol kind is inconsistent with its type");
|
||||
|
||||
if (nt.IsRecord)
|
||||
HasModifier(cx, trapFile, key, "record");
|
||||
|
||||
if (nt.TypeKind == TypeKind.Struct)
|
||||
{
|
||||
if (nt.IsReadOnly)
|
||||
|
||||
Reference in New Issue
Block a user