|
|
@ -131,6 +131,10 @@ namespace CppSharp.Types |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public bool FindTypeMap(Type type, out TypeMap typeMap) |
|
|
|
public bool FindTypeMap(Type type, out TypeMap typeMap) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
typeMap = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (true) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var typePrinter = new CppTypePrinter(this); |
|
|
|
var typePrinter = new CppTypePrinter(this); |
|
|
|
var output = type.Visit(typePrinter); |
|
|
|
var output = type.Visit(typePrinter); |
|
|
@ -145,7 +149,14 @@ namespace CppSharp.Types |
|
|
|
if (FindTypeMap(output, out typeMap)) |
|
|
|
if (FindTypeMap(output, out typeMap)) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var desugaredType = type.Desugar(); |
|
|
|
|
|
|
|
if (desugaredType == type) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type = desugaredType; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public bool FindTypeMap(string name, out TypeMap typeMap) |
|
|
|
public bool FindTypeMap(string name, out TypeMap typeMap) |
|
|
|