Skip to content

Commit

Permalink
Handle pointer types when converting type symbols to types (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin authored Oct 4, 2024
1 parent d17fbc3 commit df2edf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NodeApi.Generator/SymbolExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ private static Type AsType(
return arrayTypeSymbol.ElementType.AsType(genericTypeParameters, buildType)
.MakeArrayType();
}
else if (typeSymbol is IPointerTypeSymbol pointerTypeSymbol)
{
return pointerTypeSymbol.PointedAtType.AsType(genericTypeParameters, buildType)
.MakePointerType();
}

if (typeSymbol is ITypeParameterSymbol typeParameterSymbol)
{
Expand Down

0 comments on commit df2edf0

Please sign in to comment.