Skip to content

Commit 4d62033

Browse files
committed
C#: Handle population of error types
1 parent 78c58c2 commit 4d62033

File tree

1 file changed

+1
-0
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp/Entities/Types

1 file changed

+1
-0
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Types/Type.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ static Kinds.TypeKind GetClassType(Context cx, ITypeSymbol t, bool constructUnde
8080
case TypeKind.Enum: return Kinds.TypeKind.ENUM;
8181
case TypeKind.Delegate: return Kinds.TypeKind.DELEGATE;
8282
case TypeKind.Pointer: return Kinds.TypeKind.POINTER;
83+
case TypeKind.Error: return Kinds.TypeKind.UNKNOWN;
8384
default:
8485
cx.ModelError(t, $"Unhandled type kind '{t.TypeKind}'");
8586
return Kinds.TypeKind.UNKNOWN;

0 commit comments

Comments
 (0)