C#: Consider 'record' a type modifier in the extractor (it can be applied to both class and struct).

This commit is contained in:
Michael Nebel
2022-01-14 16:43:33 +01:00
parent c17bd29640
commit dc76775d07

View File

@@ -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)