Skip to content

Commit 4ec14b1

Browse files
authored
Merge pull request #4399 from hvitved/csharp/error-type-population
C#: Handle population of error types
2 parents 48fa8aa + 4d62033 commit 4ec14b1

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)