generator: Remove redundant class name from method name
If you move a global method to a class, you often end up with something like Tag.TagExists(). This will now be automatically renamed to Tag.Exists().
This commit is contained in:
parent
68780a6226
commit
8e307d8eaa
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ namespace GtkSharp.Generation {
|
|||
else if (Modifiers == "new " || (dup != null && ((dup.Signature != null && Signature != null && dup.Signature.ToString() == Signature.ToString()) || (dup.Signature == null && Signature == null))))
|
||||
sw.Write("new ");
|
||||
|
||||
if (Name.StartsWith (container_type.Name))
|
||||
Name = Name.Substring (container_type.Name.Length);
|
||||
|
||||
if (is_get || is_set) {
|
||||
if (retval.IsVoid)
|
||||
sw.Write (Parameters.AccessorReturnType);
|
||||
|
|
Loading…
Reference in a new issue