Skip to content

Commit

Permalink
Merge pull request #5 from nenoNaninu/upgrade_typemapper_provider
Browse files Browse the repository at this point in the history
Enabled to add / change TypeMapper to DefaultTypeMapperProvider
  • Loading branch information
nenoNaninu authored May 8, 2022
2 parents d410ab2 + 1cfcf97 commit e630535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Tapper/DefaultTypeMapperProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@ public ITypeMapper GetTypeMapper(ITypeSymbol type)

throw new InvalidOperationException($"{type.ToDisplayString()} is not supported.");
}

public void AddTypeMapper(ITypeMapper typeMapper)
{
_mappers[typeMapper.Assign] = typeMapper;
}
}

0 comments on commit e630535

Please sign in to comment.