@@ -36,7 +36,7 @@ public override TypePrinterResult VisitTagType(TagType tag, TypeQualifiers quals
36
36
return string . Empty ;
37
37
38
38
TypeMap typeMap ;
39
- if ( TypeMapDatabase . FindTypeMap ( tag , GeneratorKind . CSharp , out typeMap ) )
39
+ if ( TypeMapDatabase . FindTypeMap ( tag , out typeMap ) )
40
40
{
41
41
typeMap . Type = tag ;
42
42
@@ -47,7 +47,7 @@ public override TypePrinterResult VisitTagType(TagType tag, TypeQualifiers quals
47
47
Type = tag
48
48
} ;
49
49
50
- return typeMap . SignatureType ( typePrinterContext ) . ToString ( ) ;
50
+ return typeMap . CSharpSignatureType ( typePrinterContext ) . ToString ( ) ;
51
51
}
52
52
53
53
return base . VisitTagType ( tag , quals ) ;
@@ -150,7 +150,7 @@ public override TypePrinterResult VisitArrayType(ArrayType array,
150
150
public override TypePrinterResult VisitBuiltinType ( BuiltinType builtin , TypeQualifiers quals )
151
151
{
152
152
TypeMap typeMap ;
153
- if ( TypeMapDatabase . FindTypeMap ( builtin , GeneratorKind . CSharp , out typeMap ) )
153
+ if ( TypeMapDatabase . FindTypeMap ( builtin , out typeMap ) )
154
154
{
155
155
var typePrinterContext = new TypePrinterContext ( )
156
156
{
@@ -159,7 +159,7 @@ public override TypePrinterResult VisitBuiltinType(BuiltinType builtin, TypeQual
159
159
Type = builtin ,
160
160
Parameter = Parameter
161
161
} ;
162
- return typeMap . SignatureType ( typePrinterContext ) . Visit ( this ) ;
162
+ return typeMap . CSharpSignatureType ( typePrinterContext ) . Visit ( this ) ;
163
163
}
164
164
return base . VisitBuiltinType ( builtin , quals ) ;
165
165
}
@@ -183,15 +183,15 @@ public override TypePrinterResult VisitPointerType(PointerType pointer,
183
183
if ( allowStrings && pointer . IsConstCharString ( ) )
184
184
{
185
185
TypeMap typeMap ;
186
- TypeMapDatabase . FindTypeMap ( pointer , GeneratorKind . CSharp , out typeMap ) ;
186
+ TypeMapDatabase . FindTypeMap ( pointer , out typeMap ) ;
187
187
var typePrinterContext = new TypePrinterContext ( )
188
188
{
189
189
Kind = ContextKind ,
190
190
MarshalKind = MarshalKind ,
191
191
Type = pointer . Pointee ,
192
192
Parameter = Parameter
193
193
} ;
194
- return typeMap . SignatureType ( typePrinterContext ) . Visit ( this ) ;
194
+ return typeMap . CSharpSignatureType ( typePrinterContext ) . Visit ( this ) ;
195
195
}
196
196
197
197
var pointee = pointer . Pointee . Desugar ( ) ;
@@ -258,7 +258,7 @@ public override TypePrinterResult VisitTypedefType(TypedefType typedef,
258
258
var decl = typedef . Declaration ;
259
259
260
260
TypeMap typeMap ;
261
- if ( TypeMapDatabase . FindTypeMap ( typedef , GeneratorKind . CSharp , out typeMap ) )
261
+ if ( TypeMapDatabase . FindTypeMap ( typedef , out typeMap ) )
262
262
{
263
263
typeMap . Type = typedef ;
264
264
@@ -270,7 +270,7 @@ public override TypePrinterResult VisitTypedefType(TypedefType typedef,
270
270
Parameter = Parameter
271
271
} ;
272
272
273
- return typeMap . SignatureType ( typePrinterContext ) . ToString ( ) ;
273
+ return typeMap . CSharpSignatureType ( typePrinterContext ) . ToString ( ) ;
274
274
}
275
275
276
276
FunctionType func ;
@@ -299,7 +299,7 @@ public override TypePrinterResult VisitTemplateSpecializationType(
299
299
template . Template . TemplatedDecl ;
300
300
301
301
TypeMap typeMap ;
302
- if ( ! TypeMapDatabase . FindTypeMap ( template , GeneratorKind . CSharp , out typeMap ) )
302
+ if ( ! TypeMapDatabase . FindTypeMap ( template , out typeMap ) )
303
303
{
304
304
if ( ContextKind == TypePrinterContextKind . Managed &&
305
305
decl == template . Template . TemplatedDecl &&
@@ -330,7 +330,7 @@ public override TypePrinterResult VisitTemplateSpecializationType(
330
330
MarshalKind = MarshalKind
331
331
} ;
332
332
333
- return typeMap . SignatureType ( typePrinterContext ) . ToString ( ) ;
333
+ return typeMap . CSharpSignatureType ( typePrinterContext ) . ToString ( ) ;
334
334
}
335
335
336
336
public override TypePrinterResult VisitDependentTemplateSpecializationType (
0 commit comments