Module implementing a node visitor to check for modifications of constants.
None |
ConstantModificationVisitor | Class implementing a node visitor to check for modifications of constants. |
None |
Class implementing a node visitor to check for modifications of constants.
DEFAULT_NON_MODIFYING_METHODS |
None |
ConstantModificationVisitor | Constructor |
__checkAssignment | Private method to check assignment statements. |
__checkAugAssignment | Private method to check augmented assignment statements. |
__checkCall | Private method to check function call statements. |
__currentScope | Private method to return the name of the current scope. |
__currentScopeMsg | Private method to return the name of the current scope for the error message. |
visit | Public method to traverse the node tree. |
None |
Constructor
Private method to check assignment statements.
Private method to check augmented assignment statements.
Private method to check function call statements.
Private method to return the name of the current scope.
Private method to return the name of the current scope for the error message.
Public method to traverse the node tree.