Refactor: move makeParameterName() to common Language base class.
This method was duplicated more or less identically for 4 languages and will be needed for another one soon, so put it in the base class from which it can be simply reused instead. No changes in the program behaviour whatsoever.
This commit is contained in:
parent
9a511f1a33
commit
8c76270619
6 changed files with 42 additions and 137 deletions
|
|
@ -303,6 +303,9 @@ protected:
|
|||
/* Return true if the current method is part of a smart-pointer */
|
||||
int is_smart_pointer() const;
|
||||
|
||||
/* Return the name to use for the given parameter. */
|
||||
virtual String *makeParameterName(Node *n, Parm *p, int arg_num, bool setter = false) const;
|
||||
|
||||
/* Some language modules require additional wrappers for virtual methods not declared in sub-classes */
|
||||
virtual bool extraDirectorProtectedCPPMethodsRequired() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue