Skip to content

Commit 2a7d7fa

Browse files
committed
Use a native type printer context when looking for type maps in CSharpSourcesExtensions.DisableTypeMap.
1 parent 63c42c3 commit 2a7d7fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Generator/Generators/CSharp/CSharpSourcesExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private static void DisableSingleTypeMap(Class mapped, BindingContext context)
125125
foreach (TypePrintScopeKind kind in Enum.GetValues(typeof(TypePrintScopeKind)))
126126
{
127127
var cppTypePrinter = new CppTypePrinter(context) { ScopeKind = kind };
128+
cppTypePrinter.PushContext(TypePrinterContextKind.Native);
128129
names.Add(mapped.Visit(cppTypePrinter));
129130
}
130131
foreach (var name in names.Where(context.TypeMaps.TypeMaps.ContainsKey))

0 commit comments

Comments
 (0)