|
|
@ -138,11 +138,15 @@ namespace CppSharp.Passes |
|
|
|
if (result) |
|
|
|
if (result) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
var method = decl as Method; |
|
|
|
if (decl is Method && decl.IsGenerated) |
|
|
|
if (method == null || !method.IsGenerated) |
|
|
|
return ((Class) decl.Namespace).GetPropertyByName(newName) != null; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ((Class) method.Namespace).GetPropertyByName(newName) != null; |
|
|
|
var property = decl as Property; |
|
|
|
|
|
|
|
if (property != null && property.Field != null) |
|
|
|
|
|
|
|
return ((Class) decl.Namespace).Properties.FirstOrDefault( |
|
|
|
|
|
|
|
p => p != decl && p.Name == newName) != null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static IEnumerable<Function> GetFunctionsWithTheSameParams(Function function) |
|
|
|
private static IEnumerable<Function> GetFunctionsWithTheSameParams(Function function) |
|
|
|