Skip to content

Commit

Permalink
TypeMapDatabase: fix passing GeneratorKind to FindTypeMap calls
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlocklogic committed Dec 5, 2023
1 parent 64c3b24 commit 502d77e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Generator/Types/TypeMapDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ public bool FindTypeMap(Type type, GeneratorKind kind, out TypeMap typeMap)
{
var specialization = template.GetClassTemplateSpecialization();
if (specialization != null &&
FindTypeMap(specialization, out typeMap))
FindTypeMap(specialization, kind, out typeMap))
return true;

if (template.Template.TemplatedDecl != null)
{
if (FindTypeMap(template.Template.TemplatedDecl,
out typeMap))
if (FindTypeMap(template.Template.TemplatedDecl, kind, out typeMap))
{
typeMap.Type = type;
return true;
Expand Down

0 comments on commit 502d77e

Please sign in to comment.